Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wuyue92tree/rest_backend
基于 python3+ django2.2的前后端分离模板
https://github.com/wuyue92tree/rest_backend
django python3 rest-api swagger-ui
Last synced: 2 months ago
JSON representation
基于 python3+ django2.2的前后端分离模板
- Host: GitHub
- URL: https://github.com/wuyue92tree/rest_backend
- Owner: wuyue92tree
- License: mit
- Created: 2018-04-22T03:19:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T02:28:33.000Z (about 2 years ago)
- Last Synced: 2024-05-28T15:48:35.100Z (8 months ago)
- Topics: django, python3, rest-api, swagger-ui
- Language: Python
- Homepage:
- Size: 476 KB
- Stars: 11
- Watchers: 4
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rest_backend
## 后台api接口模板
### admin管理页
![admin](./images/admin.jpg)### swagger-ui页
![swagger](./images/swagger.png)## 基础依赖
- python3.6+
- django2.2
## 初始化
```
git clone https://github.com/wuyue92tree/rest_backend.gitcd rest_backend
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
```## 启动
后台地址:http://127.0.0.1:8000/
API地址: http://127.0.0.1:8000/api/docs/
## docker部署上线
```
git clone https://github.com/wuyue92tree/rest_backend.gitcd rest_backend
docker build -t rest_backend .
docker run -tid -v :/data/src/log -p 80:80 rest_backend
```## demo
[http://django-demo.antio.top/](http://django-demo.antio.top/)
## 捐赠