This project is a simple web-based Bucket List application built with Flask and MongoDB. It allows users to add, view, mark as done, and delete items from their personal bucket list.
- Add Items: Users can add new items to their bucket list.
- View Items: All bucket list items are displayed on the homepage.
- Mark as Done: Items can be marked as completed.
- Delete Items: Users can remove items from their list.
- Backend: Python, Flask
- Database: MongoDB (accessed via PyMongo)
- Frontend: HTML (Jinja2 templates)
app.py # Main Flask application
requirements.txt # Python dependencies
start.sh # Shell script to start the app
/templates/index.html # Main HTML template
- Clone the repository and navigate to the project directory.
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
- Create a
.envfile in the project root with the following:MONGODB_URI=your_mongodb_connection_string DB_NAME=your_database_name
- Create a
- Start MongoDB (locally or use a cloud provider like MongoDB Atlas).
- Run the application:
Or use the provided
python app.py
start.shscript. - Access the app:
Open your browser and go to
http://localhost:5000
/: Home page (shows the bucket list)/bucket(POST): Add a new item/bucket(GET): Get all items/bucket/done(POST): Mark an item as done/delete(POST): Delete an item
This project is part of the MSIB LearningX Full Stack Web Development program. It demonstrates CRUD operations, RESTful API design, and integration with MongoDB using Flask.
Feel free to modify and expand this project for your learning or personal use!