Skip to content

Princekrampah/flaskMongoTodoApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask MongoDB CRUD APP

Project Setup

  1. Create main (flaskMongoDB) project folder

  2. 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
  1. Activate the virtual environment
# Linux and Mac
source venv/bin/activate

#Windows users
\venv\Scripts\activate.bat
  1. Install all project dependencies
pip install flask Flask-PyMongo Flask-WTF

python -m pip install "pymongo[srv]
  1. Setup the mongoDB cluster

Project Structure

project_root_dir
│
|
|
|__ application
|    |
|    |__ templates
|    |__ __init__.py
|    |__ routes.py
|    |__ forms.py
|
|
|__ venv
|
|
|
|__ README.md
|
|
|__ run.py

Tutorial Phases

  1. Simple Hello world app
  2. Setup database connection Sign Up For mongoDB cloud
  3. Setup init.py file (project configurattions)
  4. Setup base template
  5. Setup view_todos.html file
  6. Create Flask forms
  7. Create insert
  8. Implement Sweet alerts
  9. Create retrieve
  10. Implemet delete
  11. Implement update functionality
  12. Setup .gitignore file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published