FastAPI framework, high performance, easy to learn, fast to code, ready for production
For each Type of environment Create a respective file and pass those variables in start.sh file
Key : ENVIRONMENT
Value : [PRODUCTION,STAGING,DEVELOPMENT] (Any One)
File : [.env.production, .env.staging, .env.development] (Respective to Value)
Add db_host, db_password, db_user, db_name , db_port in env file.
Although using SQLAlchemy but that is just to create connection, Can implement models with respect to your needs.
Requirement : Docker
To run just use command "bash start.sh" on linux need to configure for other OS.
Created Reponse, Logging Common Structure Added request_id(Can also be passed from Nginx Server) which can be helpful for debugging
Still Learning,
So feel free, Anything You wanna contirubute.