Skip to content

Harshk10-star/Plate-Two-Plate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plate-Two-Plate

A platform connecting businesses with excess food to shelters and food banks.

Setup Instructions

  1. Install all dependencies:

    npm run install:all
  2. Start the development environment:

    npm run dev

This will start both the frontend (React) and backend (Express) servers.

API Endpoints

  • POST /api/donations - Create a new donation
  • GET /api/donations - Get all available donations
  • POST /api/donations/claim - Claim an existing donation
  • GET /api/users/:id/history - Get a user's donation history
  • POST /api/ai/impact - Get an impact message for pounds saved

Project Structure

  • /frontend - React frontend with TailwindCSS
  • /server - Express API server

Features

  • Donate excess food items
  • Browse available donations
  • Claim donations
  • View impact metrics and statistics
  • User dashboard with history

Environment Variables

Copy .env.example to .env in the server directory and configure:

  • PORT - Server port (default: 3000)
  • GEMINI_API_KEY - (Optional) For better impact messages

Technologies

  • Frontend: React, TailwindCSS, Vite
  • Backend: Node.js, Express
  • API: RESTful endpoints

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages