Skip to content

Latest commit

Β 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CareCycle

🩺 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.

πŸš€ Deployment

Backend (Render)

  • Service: Web Service
  • Runtime: Node.js
  • Build Command: npm install
  • Start Command: npm start
  • Environment Variables:
    • MONGODB_URI: Your MongoDB Atlas connection string
    • FRONTEND_URL: https://carecycle-frontend.onrender.com (after frontend deployment)

Frontend (Render)

  • 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)

Environment Files

  • Backend .env: Contains MONGODB_URI and FRONTEND_URL
  • Frontend .env: Contains REACT_APP_API_BASE_URL

Database

  • Use MongoDB Atlas for production
  • Create a cluster and get the connection string
  • Update MONGODB_URI in backend environment variables

πŸ› οΈ Local Development

Prerequisites

  • Node.js (v16+)
  • MongoDB (local or Atlas)
  • npm or yarn

Setup

  1. Clone the repository

  2. Install dependencies:

    # Backend
    cd backend
    npm install
    
    # Frontend
    cd ../frontend
    npm install
  3. Set up environment variables:

    • Copy backend/.env and update MONGODB_URI
  4. Start the application:

    # Backend (from backend directory)
    npm run dev
    
    # Frontend (from frontend directory)
    npm start

πŸ“ Project Structure

carecycle/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ models/
β”‚   β”œβ”€β”€ routes/
β”‚   β”œβ”€β”€ server.js
β”‚   β”œβ”€β”€ package.json
β”‚   └── .env
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ package.json
β”‚   └── build/
└── README.md

About

🩺 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.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages