Annamitra is a MERN stack-based application designed to reduce food waste and alleviate hunger by enabling individuals to donate leftover food directly to those in need. The application features a dual interface for donors and recipients, allowing seamless food listing and requesting. This project supports the UN's Sustainable Development Goals, promoting responsible consumption and production, and partnerships to achieve these goals.
- Unified Interface: Single interface for both donating and receiving food.
- Real-time Updates: Live updates on available food donations.
- User Authentication: Secure login using JWT.
- File Handling: Utilizes Multer for handling file uploads.
- Data Visualization: Uses Chart.js for visualizing donation data.
- Responsive Design: Styled with Tailwind CSS for a modern and responsive UI.
- Frontend: React, Tailwind CSS, Chart.js
- Backend: Node.js, Express.js
- Database: MongoDB
- Authentication: JSON Web Token (JWT)
- File Handling: Multer
git clone https://github.com/krishaga/Annamitra
cd annamitracd backend
npm installcd ../frontend
npm installCreate a .env file in the server directory and add the following variables:
PORT=5000
MONGODB_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secretIn the server directory, start the backend server:
node index.jsIn the client directory, start the React development server:
npm run dev- Register and log in as a user.
- Share your location to facilitate pickups and drop-offs.
- Browse available food donations.
- Request food donations and create new listings.
- List available food for donation with details like type, quantity, and expiration date.
- Switch between donating and receiving food with a unified interface.
We welcome contributions from the community. To contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
git checkout -b feature/your-feature-name
- Make your changes and commit them with a descriptive message.
git commit -m "Add feature: your feature description" - Push your changes to the branch.
git push origin feature/your-feature-name
- Create a pull request, detailing the changes and the motivation behind them.
This project is licensed under the MIT License. See the LICENSE file for more details.
- Thanks to the developers of the MERN stack and related libraries.
- Thanks to Annapurna for their UI design.
- Special thanks to community members and testers who provided valuable feedback.
For any queries or suggestions, please contact us at:
- Email: Email Here
- GitHub Issues: https://github.com/krishaga/annamitra/issues