This repository contains the source code for a waste management solution aimed at supporting the Swachh Bharat Mission (SBM). The application addresses challenges in waste segregation, collection optimization, and citizen engagement. It includes features such as waste categorization tools, a reporting system for unclean areas, leaderboards, and blogs to promote sustainability awareness.
- Waste Segregation Tools:
- Allows users to record and categorize waste types (biodegradable, recyclable, hazardous).
- Collection Optimization:
- Collaborates with municipalities, NGOs, etc. for waste collection.
- Citizen Engagement:
- Reporting system to upload images and pinpoint waste locations on a map.
- Gamified leaderboards and reward systems to encourage active participation.
- Blogs and news updates to keep users informed on sustainability practices and achievements.
- Framework: Next.js (React-based framework for building scalable and performant web applications).
- Styling: CSS Modules / Tailwind CSS (choose the one used in the project).
- Database: PostgreSQL (Relational database for storing and managing data).
- ORM: Drizzle ORM (TypeScript ORM for type-safe database queries).
- Mapping: Integration with mapping APIs (e.g., Google Maps, OpenStreetMap).
- Authentication: Auth mechanism (e.g., JWT, OAuth).
Ensure you have the following installed:
- Node.js (version 16 or later)
- PostgreSQL (version 12 or later)
- npm or yarn
-
Clone the repository:
git clone https://github.com/your-repo-name.git
-
Navigate to the project directory:
cd your-repo-name -
Install dependencies:
npm install # or yarn install -
Configure the environment variables:
- Create a
.env.localfile in the root directory. - Add the following variables:
DATABASE_URL=your_postgresql_connection_string MAP_API_KEY=your_mapping_service_api_key AUTH_SECRET=your_authentication_secret
- Create a
-
Run database migrations:
npx drizzle-kit up
-
Start the development server:
npm run dev # or yarn dev -
Open the application: Visit http://localhost:3000 in your browser.
This project is licensed under the MIT License.
- Swachh Bharat Mission for inspiring this initiative.
- Next.js and Drizzle ORM for their robust frameworks.
- All contributors who helped build this project.
Feel free to submit issues or feature requests in the Issues tab of the repository.