Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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的前后端分离模板

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.git

cd 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.git

cd 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/)

## 捐赠



   title