Skip to content

NodeJS / Express / MongoDB - Shopping Cart (monolithic app with handlebars)

Notifications You must be signed in to change notification settings

ShubhamKhale/nodejs-shopping-cart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node js, Mongodb, Express js Shopping Cart

image

This project work with Stripe api for Nodejs. Go to http://stripe.com/ for more information

Requirements

  • mongodb with Robo3T or MongoDB Compass
  • node.js
  • account on Stripe.js (for your test purchases)

Used middlewares

  • connect-mongo
  • express cookie
  • nodemon
  • morgan

Migrations

Current app implementation doesn't have UI for adding new products,
but you can run script with migrations for add some data into DB and get it from UI.

npm run migration:write

ENV

Before running the app, you should create your own .env file in the root with the following variables:

PORT=<place your port here>
STRIPE_SECRET_KEY=<your stripe test key>
MONGO_DB_URL=<path to mongoDB>

Running

  • npm install
  • add stripe test key to ENV file and to checkout.js (publishable not secret key for sender identification)
  • npm start
  • open browser at http://localhost:3000

About

NodeJS / Express / MongoDB - Shopping Cart (monolithic app with handlebars)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.0%
  • Handlebars 32.4%
  • CSS 4.6%