Snacc is a full-stack MERN (MongoDB, Express.js, React, Node.js) application designed to provide a seamless food delivery experience for users. It allows customers to browse menus, place orders, and track deliveries, while restaurants can manage their orders and menus efficiently.
- User Authentication: Sign up and log in functionality for customers and restaurants.
- Order Food: Add items to the cart, place orders, and pay securely.
- Track Orders: Real-time tracking of the order status.
- Admin Panel: Manage orders, update menus, and view order history.
Frontend: React
Backend: Node.js, Express.js
Database: MongoDB
Authentication: JWT (JSON Web Tokens)
Payment Gateway: Integration with Stripe
To run this project locally, follow these steps:
- Node.js (version 14.x or higher)
- MongoDB (local or cloud instance)
- Git
- Clone the repository
git clone https://github.com/Codder-lab/snacc.git
cd snacc
- Install dependencies for backend, frontend and admin:
cd backend
npm install
cd ../frontend
npm install
cd ../admin
npm install
- Set up environment variables:
JWT_SECRET=your_jwt_secret
STRIPE_SECRET_KEY=your_stripe_secret_key
- Run the development server:
- Backend:
cd backend
npm run server
- Frontend:
cd frontend
npm run dev
- Admin:
cd admin
npm run dev
The app will run on http://localhost:5174 (frontend), http://localhost:4000 (backend) and http://localhost:5173 (admin).
-
Customer: Sign up, browse food items, add items to the cart, place orders & make payment, and track the delivery status.
-
Admin: Log in to the admin panel, manage orders, and update menus.
For any inquiries or suggestions, please reach out to:
- Name: Suyash Potdar
- Email: [email protected]
- Github: https://github.com/Codder-lab