This repository contains the code for a Cart System application implemented using React for the frontend and Node.js with Express for the backend. The application allows users to add products to their cart, update quantities, and proceed to checkout.
- Product listing: The application displays a list of available products with details such as name, price, and image.
- Cart management: Users can add products to their cart, update quantities, and remove items from the cart.
- Postal Code: Users can add their postal code.
- Estimate Delivery time: The application will display estimate delivery time when user add postal code.
- React: A JavaScript library for building user interfaces.
- Node.js: A JavaScript runtime for server-side development.
- Express: A minimal and flexible web application framework for Node.js.
To get a local copy of the project up and running, follow these steps:
Node.js and npm installed on your machine
- Clone the repository:
git clone https://github.com/your-username/cart-system.git
- Navigate to the project directory:
cd cart-system
- Install the dependencies for both the frontend and backend:
# Install frontend dependencies
cd frontend
npm install
# Install backend dependencies
cd backend
npm install
For the frontend, in the frontend directory, run:
npm start
For the backend, in the backend directory, run:
npm start