Skip to content

raifemre/fullstack-shopping-cart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MERN stack shopping cart

Description

Shopping cart app build with MERN stack and using RESTful API design. Responsive front-end design done with Material-UI, Passport used for authentication, database hosted on mLab. Deployed on Heroku.

You can get and view the list of all products from the API, register, add products to cart, remove specific product or empty entire cart, make order...

View demo here or go to "Installation and Usage" and follow the instructions to install and use.

Technologies & Tools

Front-end:

  • React
  • Redux
  • Material-UI
  • Webpack
  • Axios

Backend:

  • Node/Express
  • MongoDB/Mongoose
  • Passport

Installation and Usage

Requirements:

  • Node.js installed
  • MongoDB connection

Steps:

  1. Clone repo on your local machine:
$ git clone [email protected]:ivan3123708/fullstack-shopping-cart.git
  1. Install server-side dependencies:
$ cd fullstack-shopping-cart
$ npm install
  1. Install client-side dependencies:
$ cd client
$ npm install
  1. In server.js:

remove line 14,
replace mongoDB connection URI with your own, on line 20:

mongoose.connect(privates.mongoDBURI); --> to --> mongoose.connect(<Insert your mongoDB connection string here>);

replace express-session secret on line 27:

secret: privates.sessionSecret, --> to --> secret: <Insert your secret string here>,
  1. Build the app
$ npm run build
  1. Execute the app:
$ cd ..
$ npm run start
  1. App now running on localhost:5000

About

MERN stack shopping cart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.6%
  • CSS 15.8%
  • HTML 0.6%