Created a todo list using Flask
No live demo.
- Project is built using Jinja2, MongoDB and Flask
- The purpose of this project is to practice with Flask and MongoDB
- When creating you database use a virtual environment to avoid conflicts with the global interpreter
- When using a virtual environment make sure to activate and deactive your environment inside of your folder where the environment is created
List of features here:
- Users can add todos
- Users can remove todos
- Users can update todos
See the appropriate guide for your environment and operating system.
- Flask or older Flask version
- Other frameworks that are not Flask, Bootstrap, Jinja2
a. Flask Installation
Add Flask to your global or virtual enivorment:
For macOS:
pip3 install flask
For Windows:
pip install flask
- Make sure that Flask is the current version
- If using the virtual enivorment make sure to navigate to your folder that you create your env folder and activated your env
- You can activate your enivorment by typing
source\bin\activate\and for Windows.\env\Scripts\activate
b. MongoDB
Create a new database and follow the steps. Make sure to set the language to the one you are using for Flask it's Python.
After creating a new database go to the database tab in the sidemenu and create a new collection. After just connect your database with the provided code.
c. Jinja/HTML/CSS Installation
- There is no installation needed for Jinja, HTML, CSS.
HTML and CSS is built into VSCode, while Jinja is Flask's official templating engine just start with {{}} or {%%}.
How does one go about using it?
User navigates onto the home page and can add, remove, update and delete todo items.
Project is: complete