How recurse-official/g50 works
Project type and purpose
• This is a full-stack web application called “Advanced Food Redistribution Network.”
• Frontend: React.js app for donors and clients.
• Backend: Node.js/Express API with real-time features via Socket.IO.
• Database: MongoDB for storing users, donations, and claims.
• External service: Google Maps API for geolocation.
File structure
• Top level:
• api/ – Express server entrypoint (server.js), real-time socket logic (socket.js), routes (auth.js, food.js), data models (User, FoodItem, Claim).
• client/ – React application (public/ + src/), components for Login, Signup, Home, MainPageClient, MainPageDonor, Navbar.
• Config and scripts:
• api/.env – environment variables (MONGO_URI, API keys, PORT).
• package.json files in root, api/, client/ for npm scripts.
README for additional insights
• Users: Donors post food details; Clients view & claim within a radius.
• Real-time status updates via Socket.IO.
• Google Maps API for mapping & distance filtering.