- Create file
.env
in root project - Create your database MongoDB
- Add your database url in
DATABASE_URL
variable - Add your database name in
DATABASE_NAME
variable - Add development mode in
ENVIRONMENT
variable - Add port in
PORT
variable - Add your secret key in
SECRET_KEY
variable
- Install dependencies
pip install -r requirements.txt
- Run
main.py
file
Use MongoDB Atlas for database and PyMongo for connection.