This project utilizes the MERN stack to create a full stack e-commerce application. The front-end is a React app, and the backend is a REST API.
- User registration/login
- JWT verification
- Material UI design
- Developer mode
- CRUD operations on user, product, cart and order
- Install docker desktop.
https://www.docker.com/products/docker-desktop/
- Clone the repository.
git clone https://github.com/irfanalamt/node-ecom-restapi.git
- Check the proxy property in package.json of the React app. It should look like this.
"proxy": "http://api:5000"
- Navigate into the project directory, start and run all containers.
Access the application on browser.
http://localhost:3000
$ cd node-ecom-restapi
$ docker-compose up
- When done, stop and remove all containers.
docker-compose down
- Clone the repository.
git clone https://github.com/irfanalamt/node-ecom-restapi.git
- In your terminal, navigate to the project root directory. `cd node-ecom-restapi
- a)Install back-end dependencies and start.(http://localhost:5000)
$ cd backendend
$ npm install
$ npm start
b)Open new terminal, install front-end dependencies and start.(http://localhost:3000)
$ cd frontend
$ npm install
$ npm start
- Zara,H&M - product image credits.