Welcome to CampusBites, a full-stack food ordering app tailor-made for campus life! This project brings together a modern Node.js + Express backend and a sleek React frontend to simplify food browsing, ordering, and delivery within your campus.
CampusBites/
βββ server.js # π Node.js backend server
βββ package.json # π¦ Backend dependencies & scripts
βββ routes/ # π£οΈ API route handlers (e.g., /menu, /orders)
βββ controllers/ # ποΈ Logic for handling backend requests
βββ models/ # ποΈ Mongoose models (User, Item, Order)
βββ config/ # βοΈ DB config, env setup
βββ frontend/
β βββ frontend/
β β βββ public/ # π index.html, favicon, manifest
β β βββ src/
β β β βββ components/ # π§© NavBar, Footer, ItemCard, etc.
β β β βββ pages/ # π Home, Menu, Checkout, Login, Signup
β β β βββ assets/
β β β β βββ screenshots/ # πΈ Screenshots for docs/demo
β β β βββ styles/ # π¨ CSS & SCSS files
β β β βββ utils/ # π οΈ API utilities, formatters
β β β βββ App.js # π Main app component
β β β βββ index.js # π¦ React entry point
β β βββ package.json # π¦ Frontend dependencies & scripts
βββ README.md # π Project documentation- Node.js >= 14.x
- npm or yarn
- MongoDB (local or cloud)
npm install
node server.jscd ./frontend/frontend/
npm install
npm start| Command | Description |
|---|---|
npm start |
π₯οΈ Starts dev server at http://localhost:3000 |
npm test |
β Runs tests in watch mode |
npm run build |
ποΈ Builds the app for production |
npm run eject |
π₯ Exposes CRA config (irreversible) |
| Command | Description |
|---|---|
node server.js |
π Starts the Node server |
npm run dev |
π Starts backend using nodemon (auto-reload) |
Create a .env file in the root with:
PORT=5000
MONGO_URI=mongodb://localhost:27017/campusbites
JWT_SECRET=your_super_secret_key- Frontend: React, JSX, React Router, Context API, CSS/SCSS
- Backend: Node.js, Express, MongoDB, Mongoose
- Tools: Nodemon, dotenv, concurrently
- Deployment: Vercel (Frontend), Render/Heroku (Backend)
- π User Authentication β Signup, Login, and Secure Sessions
- ποΈ Dynamic Menu β Real-time food listings with filters and categories
- π§Ί Cart & Checkout β Add items, place orders, and view history
- π¦ Admin Panel β Manage menu items and orders (optional)
- π± Mobile responsiveness & PWA support
- π³ Payment Gateway Integration (Razorpay/Stripe)
- π Real-time delivery tracking
- π Multi-campus support & customization
Contributions are welcome! π Open an issue or fork and create a PR. Please ensure your changes follow best practices and are well-tested.
Ayinala Koteswara Rao π Connect: [LinkedIn](https://www.linkedin.com/) | π§ mailto:ayinalakoteswararao15@gmail.com
Because hungry minds need food, and fast.