Skip to content

Daryaban is a Django website that helps users report and locate pollution in coasts, jungles and other environments, providing a platform to track and restore the environment.

License

Notifications You must be signed in to change notification settings

mohamadkhalaj/Daryaban

Repository files navigation

Daryaban

Daryaban is a Django website that allows users to report pollution in coasts, jungles, and other environments. Our goal is to help users identify and locate pollution so that it can be cleaned up and the environment can be restored. Whether you're an individual, a community, or an organization, Daryaban provides a platform for reporting and tracking pollution in a simple and efficient manner.

Features

This project offers a range of features to help you report and clean up polluted areas, including:

  • A feature to add an image of the polluted area
  • The ability to add the location of the polluted area
  • The option to select the type of pollution, such as metal, paper, plastic, etc.
  • The ability for users to see their report and cleaning history
  • The ability for users to see the cleaning history of other users
  • An email activation feature to verify users' email addresses
  • Captcha for login to ensure security and prevent bot attacks
  • A responsive design that adapts to different screen sizes and devices
  • An email notification to admins when a contact us message is received from users
  • The ability to get users' avatar from Gravatar
  • The ability to save user uploaded images in Dropbox

By using Daryaban to report and clean up polluted areas, you'll be making a positive impact on the environment and helping to protect our planet for future generations.

Compile

Step 1

mv .env-sample .env

Step 2

Get API

  • SECRET_KEY: This is a variable that's commonly used in Django projects to store a secret key that's used for cryptographic signing, hashing, and other security-related purposes. It should be kept secret and not shared publicly.
  • EMAIL_HOST_USER and EMAIL_HOST_PASSWORD: These variables are used to store the username and password, respectively, for the email service that the project uses to send emails. They should be set to the appropriate values for the email service being used.
  • SOCIAL_AUTH_GOOGLE_OAUTH2_KEY and SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET: These variables are used by the Python Social Auth library to authenticate users using their Google account. They should be set to the appropriate values for the Google API credentials being used.
  • HCAPTCHA_SITEKEY and HCAPTCHA_SECRET: These variables are used by the hCaptcha service to prevent automated spam and abuse on web forms. They should be set to the appropriate values for the hCaptcha account being used.
  • DBX_TOKEN, DBX_APP_KEY, DBX_APP_SECRET, and DBX_REFRESH_TOKEN: These variables are used by the Dropbox API to authenticate and authorize access to a Dropbox account. They should be set to the appropriate values for the Dropbox API credentials being used.

Step 3

Create a virtual-environment and run below commands:

pip install -r requirements.txt
python manage.py collectstatic
python manage.py makemigrations
python manage.py migrate
python manage.py runserver

Step 4

Create a superuser and in admin panel add garbage types.

python manage.py createsuperuser

Screenshots

tg_image_2129009688 Screenshot 2023-06-08 at 11-30-25 دریابان خانه Screenshot 2023-06-08 at 11-30-52 دریابان ورود Screenshot 2023-06-08 at 11-31-01 دریابان ثبت نام Screenshot 2023-06-08 at 11-31-28 دریابان محیط کاربری Screenshot 2023-06-08 at 11-31-39 دریابان پروفایل کاربری mohammadkhalaj8 Screenshot 2023-06-08 at 11-31-47 دریابان لیست مکان های آلوده Screenshot 2023-06-08 at 11-32-03 دریابان محل آلودگی Screenshot 2023-06-08 at 11-32-39 دریابان گزارش مکان های آلوده

Get Involved

At Daryaban, we believe that everyone can make a difference in protecting our environment. By reporting pollution and working together to clean it up, we can create a cleaner, healthier planet for ourselves and future generations. Join our community today and make a positive impact on the world around you!

About

Daryaban is a Django website that helps users report and locate pollution in coasts, jungles and other environments, providing a platform to track and restore the environment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published