Experience the best of Indian cuisine with our Food Ordering MERN platform. Browse a diverse selection of dishes, place your order with ease, and enjoy hassle-free payments.
Check out the live deployed project:
Flavours of India
- Frontend: Interactive user interface built with React.js.
- Backend: Robust API powered by Node.js and Express.js.
- Database: MongoDB for efficient data storage and retrieval.
- Payment Integration: Integrated with Stripe for secure transactions.
- User Authentication: JWT-based authentication for login and signup.
Follow these steps to get the project running locally on your system:
- Node.js: Make sure Node.js is installed on your system. Download Node.js
- MongoDB: Ensure you have MongoDB installed or use a cloud database (e.g., MongoDB Atlas).
git clone https://github.com/Mohak-Singhal/Food-Delivery-platform.git
cd Food-Delivery-platformcd backend
npm install cd frontend
npm install cd admin
npm install Create .env files in both the frontend and backend directories and configure them as follows:
PORT=5000
MONGO_URI=mongodb_connection_string
JWT_SECRET=jwt_secret
STRIPE_SECRET_KEY=stripe_secret_key REACT_APP_API_URL=http://localhost:3000/api REACT_APP_API_URL=http://localhost:3000/api cd backend
npm run dev cd frontend
npm start cd admin
npm start Visit the application in your browser:
http://localhost:3000
Food-Delivery-platform/
│
├── backend/ # Backend server
│ ├── models/ # Database models
│ ├── routes/ # API routes
│ ├── controllers/ # Business logic
│ └── server.js # Entry point
│
├── frontend/ # React application
│ ├── src/ # Source code
│ ├── public/ # Public assets
│ └── package.json # Frontend dependencies
│
├── admin/ # React application
│ ├── src/ # Source code
│ ├── public/ # Public assets
│ └── package.json # Frontend dependencies
│
└── README.md # Project documentation