https://github.com/danzigerrr/task-manager-with-mongodb
https://github.com/danzigerrr/task-manager-with-mongodb
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/danzigerrr/task-manager-with-mongodb
- Owner: Danzigerrr
- License: mit
- Created: 2023-08-21T13:43:07.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-21T14:29:11.000Z (almost 3 years ago)
- Last Synced: 2025-01-22T18:34:32.971Z (over 1 year ago)
- Language: HTML
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Task Manager with MongoDB
## The goal of the project
The goal of the project was to implement Flask web application which is a tool to manage task and save them in a database.
The manager allows performing CRUD operations on tasks, and displays them in user-friendly way.
This project is based on this [YouTube tutorial](https://www.youtube.com/playlist?list=PLU7aW4OZeUzwN0TsZLZUuzhc0f7OVVBcT).
[//]: # (## Live demo)
[//]: # (Use [**this link**](https://taskmanagerbykn.pythonanywhere.com/) to check the demo of this application hosted by [Pythonanywhere.com](https://pythonanywhere.com).)
## Project Setup
1. Create virtual environment
```bash
#Linux and Mac
python -m venv venv
#Windows
python -m venv c:\path\to\myenv
```
2. Activate the virtual environment
```bash
#Linux and Mac
source venv/bin/activate
#Windows
\venv\Scripts\activate.bat
```
3. Install project dependencies
```bash
pip install flask Flask-PyMongo Flask-WTF
python -m pip install "pymongo[srv]
```
4. Set up the mongoDB cluster
Firstly, [sign up for MongoDB cloud](https://account.mongodb.com/account/login).
Then, follow [this tutorial](https://nixfaq.org/2021/10/how-to-connect-python-flask-with-mongodb.html).
# What I learned during this project?
- Setting up database connection using [mongoDB cloud](https://account.mongodb.com/account/login)
- Creating Flask forms using [Flask-WTF extension](https://python-adv-web-apps.readthedocs.io/en/latest/flask_forms.html)
- Using AJAX queries to update objects in the database
- Implement user-friendly alerts using [Flash](https://flask.palletsprojects.com/en/1.1.x/patterns/flashing/)
- Creating a calendar using [FullCalendar](https://fullcalendar.io/)
- Setting up __init__.py file with project configurations