Blog server, powered by python.
Notes: All environments depend on Python ^3.7
.
tools/install.sh
- Dev:
tools/start_dev.sh
- Prod:
tools/start_prod.sh
Flask is a lightweight WSGI web application framework. We are devolop micro-service based on Flask
. The architecture of this micro-service is as follows:
├── blog-server/
| ├── server/
| ├── __init__.py
| ├── config/
| ├── libs/
| │ ├── commands.py
| │ ├── error.py
| | └── error_handler.py
| ├── api/
| │ ├── view/
| | └── internal/
| ├── service/
| | └── post.py
| ├── dao/
| ├── model/
| └── utils/
├── tools/
├── venv/
├── .flaskenv
└── requirements.txt
The file .flaskenv
mark as Flask
environmental variable.
The following API: