π©Ί CareCycle β Medicine Donation & Reuse Network
A full-stack web app that connects people with unused valid medicines to verified NGOs for redistribution β reducing pharmaceutical waste and promoting sustainable healthcare. Built with React, Node.js, Express, and MongoDB for the Sustainable Health & Connectivity Hackathon.
- Service: Web Service
- Runtime: Node.js
- Build Command:
npm install - Start Command:
npm start - Environment Variables:
MONGODB_URI: Your MongoDB Atlas connection stringFRONTEND_URL:https://carecycle-frontend.onrender.com(after frontend deployment)
- Service: Static Site
- Build Command:
npm run build - Publish Directory:
build - Environment Variables:
REACT_APP_API_BASE_URL:https://carecycle-2.onrender.com/api(after backend deployment)
- Backend
.env: ContainsMONGODB_URIandFRONTEND_URL - Frontend
.env: ContainsREACT_APP_API_BASE_URL
- Use MongoDB Atlas for production
- Create a cluster and get the connection string
- Update
MONGODB_URIin backend environment variables
- Node.js (v16+)
- MongoDB (local or Atlas)
- npm or yarn
-
Clone the repository
-
Install dependencies:
# Backend cd backend npm install # Frontend cd ../frontend npm install
-
Set up environment variables:
- Copy
backend/.envand updateMONGODB_URI
- Copy
-
Start the application:
# Backend (from backend directory) npm run dev # Frontend (from frontend directory) npm start
carecycle/
βββ backend/
β βββ models/
β βββ routes/
β βββ server.js
β βββ package.json
β βββ .env
βββ frontend/
β βββ src/
β βββ public/
β βββ package.json
β βββ build/
βββ README.md