-
Create main (
flaskMongoDB
) project folder -
create virtual environment inside of it(main project folder)
#Linux and Mac
python -m venv venv
#windows users
python -m venv c:\path\to\myenv
- Activate the virtual environment
# Linux and Mac
source venv/bin/activate
#Windows users
\venv\Scripts\activate.bat
- Install all project dependencies
pip install flask Flask-PyMongo Flask-WTF
python -m pip install "pymongo[srv]
- Setup the mongoDB cluster
project_root_dir
│
|
|
|__ application
| |
| |__ templates
| |__ __init__.py
| |__ routes.py
| |__ forms.py
|
|
|__ venv
|
|
|
|__ README.md
|
|
|__ run.py
- Simple Hello world app
- Setup database connection Sign Up For mongoDB cloud
- Setup init.py file (project configurattions)
- Setup base template
- Setup view_todos.html file
- Create Flask forms
- Create insert
- Implement Sweet alerts
- Create retrieve
- Implemet delete
- Implement update functionality
- Setup .gitignore file