It is a comprehensive food ordering platform designed to provide users with a seamless experience from browsing to payment. Built with the MERN stack (MongoDB, Express, React, Node.js). This Food delivery website features user authentication, shopping cart functionality, and order status updates.
- User Authentication: Secure login and registration system.
- Shopping Cart: Add food items to the cart and place orders.
- Order Management: Admin panel for tracking and updating order statuses.
- Stripe Payment Gateway: Integrated for online payments.
- Responsive Design: Optimized for both desktop and mobile users.
- Frontend: React JS
- Backend: Node.js, Express.js
- Database: MongoDB
- Payment Integration: Stripe
-
Clone the repository:
git clone https://github.com/siddharthgupta5/Food_Ordering_Website.git
-
Navigate to the project directory:
cd backend -
Install the dependencies:
npm install
-
Set up environment variables:
- Create a
.envfile in the root directory. - Add the following variables:
MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret STRIPE_SECRET_KEY=your_stripe_secret_key
- Create a
-
Start the development server:
npm run server
-
Open another terminal. Navigate into the project directory:
cd frontend -
Run the development server:
npm run dev
-
Click and Open your browser from the terminal and visit:
http://localhost:5173