Skip to content

Place where people can throw trash away as a blog in a community

Notifications You must be signed in to change notification settings

wnadim92/trash-community

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trash Community

Trash Clean Up Blog

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.

About Us

Welcome to the Trash Clean Up Blog. This page is dedicated to helping clean up the Earth that we all live in. Take a photo of a straw you picked up that would have been stuck in a turtle's nose, or a water bottle or plastic bag on the walk to the store from the parking lot in the trash bin that otherwise would have been in a whale's stomach. That piece of trash you throw away each day in the bin 20 steps away sure adds up. You make a big difference with that small single water bottle. If enough of us pick one up each day, we'll clean the earth! So if you want to take a picture of it, this page is for a blog for that you can share each day.

Disclaimer

We are not responsible for any actions taken by users. Users must follow all local laws and regulations regarding safe trash disposal and handling of hazardous materials. We are not responsible for any inappropriate content posted by users. Keep this site clean. Keep yourself clean, this site clean as well as the earth.

Features

  • 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

Requirements

  • 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
  • gunicorn 20.1.0

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/trash-clean-up-blog.git
    cd trash-clean-up-blog
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the required packages:

    pip install -r requirements.txt
  4. Initialize the database:

    python -c "from app import init_db; init_db()"

Usage

  1. Run the Flask application:

    flask run
  2. Open your web browser and go to http://127.0.0.1:5000.

Project Structure

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.

About

Place where people can throw trash away as a blog in a community

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published