Shopping cart application build with MERN stack and using RESTful API. Responsive front-end design, uses Redux for state management, Node & Express for API, MongoDB as database.
- React
- Redux
- Node/Express
- MongoDB/Mongoose
- Node.js installed
- MongoDB connection
- Clone repo on your local computer:
$ git clone https://github.com/kaloyan/react-ecommerce-cart.git
- Install packages
- for backend:
$ cd react-ecommerce-cart
$ npm install
- for frontend:
$ cd frontend
$ npm install
This will install all dependencies.
- Configure application
$ cp .env.example .env
- Edit
.env
file and set your MongoDB URI and PORT
- Build application.
$ npm run build
- Move
frontend/build
folder inbackend
- Import samle data in database:
$ node backend/scripts/productsSeeder.js
- Run application
$ npm start