Skip to content

ayinalakoteswararao/Campus-Bites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”πŸš€ CampusBites β€” Your Campus Food Companion

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.


πŸ“ Project Structure

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

πŸš€ Getting Started

πŸ”§ Prerequisites

  • Node.js >= 14.x
  • npm or yarn
  • MongoDB (local or cloud)

▢️ Run the App

1️⃣ Backend

npm install
node server.js

2️⃣ Frontend

cd ./frontend/frontend/
npm install
npm start

πŸ› οΈ Frontend Scripts

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)

πŸ› οΈ Backend Scripts

Command Description
node server.js πŸš€ Starts the Node server
npm run dev πŸ” Starts backend using nodemon (auto-reload)

πŸ” Environment Variables

Create a .env file in the root with:

PORT=5000
MONGO_URI=mongodb://localhost:27017/campusbites
JWT_SECRET=your_super_secret_key

🧠 Tech Stack

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

πŸ“Œ Features

  • πŸ” 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)

🎯 Future Enhancements

  • πŸ“± Mobile responsiveness & PWA support
  • πŸ’³ Payment Gateway Integration (Razorpay/Stripe)
  • πŸ“ Real-time delivery tracking
  • 🌐 Multi-campus support & customization

πŸ“š Resources


πŸ™Œ Contributing

Contributions are welcome! πŸŽ‰ Open an issue or fork and create a PR. Please ensure your changes follow best practices and are well-tested.


πŸ§‘β€πŸ’» Maintainer

Ayinala Koteswara Rao 🌐 Connect: [LinkedIn](https://www.linkedin.com/) | πŸ“§ mailto:ayinalakoteswararao15@gmail.com


❀️ Made with love, for campus

Because hungry minds need food, and fast.

About

🍴 Campus Bites (Cafeteria Management System) A full-stack web application to simplify πŸ” cafeteria operations, allowing students πŸ‘©β€πŸŽ“ to order food and canteen owners πŸ‘¨β€πŸ³ to manage menus in real time. Features include secure payments πŸ’³, real-time updates ⏱, and a user-friendly interface πŸ–₯, showcasing expertise in full-stackΒ development.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors