MealSphere is a full-stack dining platform that helps students discover and subscribe to local mess services within a 2km radius. Users can view menus, reserve meals, and purchase monthly subscriptions, while mess owners can manage visibility and meal scheduling.
- Frontend: React.js, Tailwind CSS, Vite
- Backend: Node.js, Express.js
- Database: MongoDB Atlas
- Authentication: JWT, Cookies, Bcrypt
- Scheduling: Node-Cron
- File Uploads: Multer
Follow these steps to run MealSphere locally:
-
Clone the repository
git clone https://github.com/M0hit1029/MealSphere.git cd MealSphere -
Install dependencies in both
frontendandbackendfolders:cd frontend npm install cd ../backend npm install
-
Setup Environment Variables
In/backend/.env, add your MongoDB connection string:MONGO_URI=your_mongo_cluster_link
-
Start the backend server
node index.js
-
Configure frontend environment
In/frontend/.env, add:VITE_BACKEND_URL=http://localhost:5000
-
Run the frontend
cd ../frontend npm run dev
- π View Website
- π Geo-based mess recommendations (within 2km)
- π§Ύ View and manage menus
- π Secure login/signup using JWT & cookies
- π Meal reservation and monthly plans
- π€ Mess image uploads using Multer
- β° Scheduled cleanup using Cron