A simple Flask+Mongo scaffold to quickly get started with app development. Highlights are listed in the list below.
- Uses
python-dotenv
to fetch env variables from.env
file - Uses the Flask Mongo for Mongo DB connection
- Uses blueprint to create a suite of roots, a sample suite called animals are provided
- Check the pyproject.toml file
- Needs poetry cli python package (Optional)
- Needs Mongo DB string to be based in the .env file
- Install the dependencies with poetry
$ poetry install
- Set poetry shell
$ poetry shell
- Make a copy of the
.env.example
file and name it as.env
- Set the
db
andenv
values in .env file - Run the script
$ python app.py
- Create a virtual env
- Use the
requirements.txt
file to install the dependencies - Make a copy of the
.env.example
file and name it as.env
- Set the
db
andenv
values in .env file - Run
python app.py
to start the app