This is a simple shopping cart built with React and Redux.
First, clone the repo:
git clone https://github.com/mostafizurhimself/react-cart.git
Go to the project folder and install the dependencies:
cd react-cart
yarn install
# or
npm install
Copy the .env.example
file to .env
and fill the VITE_API_BASE_URL
variable with your API URL
.
cp .env.example .env
There are build in json-server for the API. To start the API server, run:
yarn api:start
# or
npm run api:start
Your API server will be running on http://localhost:1337. So you can use this URL in the .env
file.
To start the development server, run:
yarn dev
# or
npm run dev
Your development server will be running on http://localhost:3000.