克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
run
Loading...
README
MIT

File Uploader

sami.develop@outlook.com Abdusami

Django + Vue3 + PostgreSQL

  • Introdoctions
  • [Project Struct](##Project Struct)
  • [Get started](##Get started)

Introdoctions

This project uses Django as the backend server, PostgreSQL as the main database, and Vue3 as the frontend framework. The UI library used is the Vuetifuyjs component library, which is a completely separated file upload website for MVC mode.

Project Structs

- doc       # documents
- server    # server source file
- static    # precompiled static file (builded)
- web       # front-end pages source file (vue3)
- file.conf # Nginx config file for configuration
- run       # run back-end server script

Get started

Database Configuration

there is a database called file_upload , we need to configure in settings.py database :

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'file_upload',
        'USER': ' **** ',
        'PASSWORD': ' **** ',
        'HOST': 'localhost',
        'PORT': 5432,
    }
}

Nginx Configuration

  • To start the project, it is necessary to first configure the Nginx static server, Paste the following code into the main configuration file of the Nginx server
http{

	# ....
	# ....
	
	include /path/to/project/root/directory/file.conf;

}

Don't forget to point to the static folder under the root directory of the project from the root directory in the file. conf file

Start WSGI Server

  • First, install the required pip library from the requirements. txt file in the root directory
pip install -r requirements.txt
  • Starting the WSGI server from the command line
$ nohup gunicorn -w 4 -b 0.0.0.0:2424 FileUploader.wsgi & > ./gunicorn.log

Successfully deployed, can access on http://localhost web borwser

MIT License Copyright (c) 2024 Abdusami Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

link share project in Django | Actix & Vue + PostgreSQL for upload and share the file's link each other 展开 收起
Rust 等 5 种语言
MIT
取消

发行版 (1)

全部
5个月前

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化