Campus Bites is a modern, full-stack college canteen pre-ordering system built to eliminate long queues and streamline canteen operations. It features a futuristic "2026 Zomato-inspired" UI with glassmorphism, smooth animations, and a seamless user experience.
- Smart Menu Browsing: Explore categorized food items with rich visuals.
- Pre-Order System: Select items and set a specific pickup time.
- Live Order Tracking: Monitor order status from 'Pending' to 'Ready'.
- Google OAuth: Fast and secure login using Google accounts.
- Premium UI: Dark mode aesthetic with glassmorphism and smooth transitons.
- Kitchen View: Real-time dashboard for active orders.
- Order Management: Update order status ('Preparing', 'Ready', 'Completed').
- Queue Efficiency: Reduced rush-hour pressure with scheduled pickups.
- Menu Management: Add, edit, or remove dishes easily.
- Analytics: View sales data and popular items (Coming Soon/In-progress).
- Control Panel: Manage user roles and system settings.
- Frontend: React, Vite, Lucide Icons, Framer Motion (planned animations).
- Backend: Node.js, Express.js.
- Database: MongoDB Atlas (Mongoose).
- Authentication: JWT (JSON Web Tokens) & Google OAuth 2.0.
- Styling: Vanilla CSS (Custom Glassmorphism and Modern UI tokens).
- Deployment: Vercel (Frontend), Render (Backend).
campus-bites/
βββ src/ # React Frontend
β βββ components/ # Reusable UI components
β βββ context/ # Auth and Cart Contexts
β βββ pages/ # Student/Admin/Staff pages
β βββ assets/ # Styles and images
βββ server/ # Node.js Backend
β βββ models/ # Mongoose Schemas
β βββ routes/ # Express API endpoints
β βββ middleware/ # Auth and validation
β βββ index.js # Server entry point
βββ public/ # Static assets
- Node.js installed
- MongoDB Atlas account (for database)
git clone https://github.com/akashhg2007/campus-bites.git
cd campus-bitescd server
npm installCreate a .env file in the server directory and add:
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
GOOGLE_CLIENT_ID=your_google_client_idStart the server:
npm startcd ..
npm installCreate a .env file in the root directory:
VITE_API_URL=http://localhost:5000
VITE_GOOGLE_CLIENT_ID=your_google_client_idStart the development server:
npm run devContributions are welcome! Feel free to:
- Fork the project.
- Create your Feature Branch (
git checkout -b feature/NewFeature). - Commit your changes (
git commit -m 'Add some NewFeature'). - Push to the Branch (
git push origin feature/NewFeature). - Open a Pull Request.
Distributed under the ISC License. See LICENSE for more information.
Built with β€οΈ for better campus dining.