- User Website link: https://feastflies.gauravjalap.me
- Admin Website link: https://admin-feastflies.gauravjalap.me
This is a full-stack Food Delivery Website built using the MERN stack (MongoDB, Express.js, React.js, Node.js). The application includes both user and admin access, and payment options are integrated using Stripe.
- User Authentication (Login, Register)
- Admin Dashboard
- Browse and search for food items
- Add items to cart
- Place orders
- Secure payment integration with Stripe
- Responsive design
- Frontend: React.js
- Backend: Node.js, Express.js
- Database: MongoDB
- Payment Gateway: Stripe
- Authentication: JWT (JSON Web Tokens)
- Node.js and npm installed on your machine
- MongoDB installed and running
-
Clone the repository:
git clone https://github.com/gauravjalap/food-delivery-website.git cd food-delivery-website
-
Install dependencies:
cd frontend npm install cd ../backend npm install cd ../admin npm install
-
Set up environment variables:
Create a
.env
file in the root directory and add the following variables:PORT=5000 MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret STRIPE_SECRET_KEY=your_stripe_secret_key
-
Start the server:
cd backend/ npm run server
-
Start the client:
Firstly Admin Frontend:
cd admin/ npm run dev
For Food Delivery Website:
cd frontend/ npm run dev
NOTE: Run all the bash command in different terminal instances. And also check if frontend_url is correct as of your platform
-
User Registration and Login:
Users can register and log in to their accounts.
-
Browse Food Items:
Users can browse and search for food items.
-
Add to Cart:
Users can add items to their cart.
-
Place Orders:
Users can place orders and make payments using Stripe.
-
Admin Dashboard:
Admins can manage food items, view orders, and perform other administrative tasks.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or suggestions, feel free to contact me at work.gauravkumar01@gmail.com.
- Thanks to the open-source community for providing valuable resources and libraries.