The basic structure of flask as a service providing server.
├── README.md
├── api
│ ├── __init__.py
│ └── hello_api.py
├── application.yml
├── config
│ └── __init__.py
├── requirements.txt
├── service
│ ├── __init__.py
│ └── hello_service.py
├── start.py
└── start.sh
# /api - api
# /service - services that could be called by api
# /config - all configuration
# application.yml - serve as a setting file
# start.py - main file
When adding a service, do it in the following steps
- Add a service in
/service
- Create an api in
/api
- Register the api in
start.py