Trash Clean Up Blog is a web application that allows users to register, log in, and post information about trash clean-up activities. Users can upload photos, provide details about the location and date of the clean-up, and view historical posts.
- User registration and login
- Password reset functionality
- Post trash clean-up activities with photos
- View historical posts
- Ensure compliance with local disposal laws and regulations for safe trash disposal
- Python 3.10+
- Flask 2.0.2
- Flask-Session 0.4.0
- Werkzeug 2.0.2
- itsdangerous 2.0.1
- Jinja2 3.0.3
- MarkupSafe 2.0.1
- click 8.0.3
- importlib-metadata 4.8.2
- zipp 3.6.0
- typing-extensions 3.10.0.2
- SQLite3
-
Clone the repository:
git clone https://github.com/yourusername/trash-clean-up-blog.git cd trash-clean-up-blog
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Initialize the database:
python -c "from app import init_db; init_db()"
-
Run the Flask application:
flask run
-
Open your web browser and go to
http://127.0.0.1:5000
.
trash-clean-up-blog/
├── app.py # Main application file
├── requirements.txt # List of dependencies
├── .gitignore # Git ignore file
├── README.md # Project README file
├── templates/ # HTML templates
│ ├── base.html # Base template
│ ├── index.html # Home page template
│ ├── register.html # Registration page template
│ ├── login.html # Login page template
│ ├── drop_off.html # Drop off page template
│ ├── historical_posts.html # Historical posts page template
│ ├── reset_password.html # Password reset page template
│ ├── set_new_password.html # Set new password page template
│ ├── about.html # About page template
│ ├── eula.html # End User License Agreement page template
├── static/
│ ├── uploads/ # Directory for uploaded photos
└── flask_session/ # Directory for Flask session files
## License
This project is licensed under the MIT License. See the LICENSE file for details.
## Contact
If you have any questions or suggestions, please contact me at wnadim2992@gmail.com.