The base for create a flask API, this base include:
- Routes configuration
- Schemas load and dump configuration
- request and responses logger
- Error logger
- JWT authentication
- Dependency injection
- Thread pools
- Docker configuration
To set up the docker compose perform the next actions:
- Create a .envDB file using the .envDB.example file like template
- Create a config.json file using the config.json.example file like template
- Run the command
docker-compose build - Run the command
docker-compose up - The development server is listening on the port 5005
- The production server using nginx is listening on the port 8082
- To set up the database and seed the initial user perform an POST request to the endpoint /api/config/init-db