This project work with Stripe api for Nodejs. Go to http://stripe.com/ for more information
- mongodb with Robo3T or MongoDB Compass
- node.js
- account on Stripe.js (for your test purchases)
- connect-mongo
- express cookie
- nodemon
- morgan
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
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>
- 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