Skip to content

mansotra99/Fast-api-Boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast-api-Boilerplate

FastAPI framework, high performance, easy to learn, fast to code, ready for production

ENVIRONMENT

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)

Database Connection

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.

TO RUN PROJECT

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

CONTRIBUTION

Still Learning,

So feel free, Anything You wanna contirubute.