This repository houses a comprehensive System developed using Node.js, Express, EJS, Bootstrap and MongoDB. The system facilitates the seamless coordination of surplus food donations from donors to NGOs or local food banks, optimizing the process through dynamic assignment of delivery agents.
- User Roles: Donor, receiver(admin) and agent roles for tailored user experiences.
- Dynamic Donations: Submit and track surplus food donations with ease.
- Agent Assignment: Efficient assignment of delivery agents based on predefined criteria.
- Real-time Updates: Keep donors, agents and receivers informed with real-time status updates.
- Responsive Design: Bootstrap ensures a visually appealing and responsive UI across devices.
- Clone the repository:
git clone https://github.com/AtharvaKulkarniIT/Prajaahar_Rakshak.git
- Install dependencies:
npm install
-
Configure MongoDB connection using environment variables:
-
Install MongoDB following the official installation guide.
-
Create a
.env
file in the root of your project and add the MongoDB connection URL:MONGO_URI=mongodb://localhost:27017/PrajaaharRakshak
Adjust the URL according to your MongoDB setup.
-
Update the
config/db.js
file to use the environment variable:// config/db.js require('dotenv').config(); // Load environment variables module.exports = { // other configurations url: process.env.MONGO_URI || 'mongodb://localhost:27017/PrajahaarRakshak', };
-
-
Start the application:
npm start
-
Access the system at:
http://localhost:5000
- Front-end: EJS, Bootstrap
- Back-end: Node.js, Express
- Database: MongoDB
- Authentication: Passport.js
Watch the demo click here.