This project is a MERN stack-based clone of Domino's pizza add to cart functionality and UI. It allows users to add items to their cart and make orders.
The project is organized into two main folders:
- backend: This folder contains the server-side code for the application. It handles API requests and business logic.
- frontend: This folder contains the client-side code for the application. It includes the user interface and user interactions.
To run the project, you need to set up both the backend and frontend.
-
Navigate to the
backend
folder using your terminal. -
Run the following command to install the necessary dependencies:
npm i
-
Create a
config.env
file in thebackend/config
folder to store your environment variables, such as PORT.PORT=4000
-
Run the server using:
npm run dev
The backend server should now be up and running on the specified port.
-
Navigate to the
frontend
folder using your terminal. -
Run the following command to install the necessary dependencies:
npm i
-
Start the development server with:
npm run dev