https://github.com/ryanhustler420/hbs_shopping_cart_nodejs
Nodejs And Mongodb Setup For building API's for Shopping Site With Stripe Payment
https://github.com/ryanhustler420/hbs_shopping_cart_nodejs
api atlas backend best-practices css database ejs express frontend html javascript mongodb mongoose nodejs nodemailer payment render shopping shopping-cart views
Last synced: 3 months ago
JSON representation
Nodejs And Mongodb Setup For building API's for Shopping Site With Stripe Payment
- Host: GitHub
- URL: https://github.com/ryanhustler420/hbs_shopping_cart_nodejs
- Owner: Ryanhustler420
- Created: 2019-04-18T05:11:00.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T20:10:17.000Z (over 3 years ago)
- Last Synced: 2025-05-15T22:16:41.677Z (about 1 year ago)
- Topics: api, atlas, backend, best-practices, css, database, ejs, express, frontend, html, javascript, mongodb, mongoose, nodejs, nodemailer, payment, render, shopping, shopping-cart, views
- Language: JavaScript
- Homepage:
- Size: 6.67 MB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hbs_shopping_cart_nodejs
```
npm install - for download depandencies
```
## Package.json Commands
```
npm starts - start the app with nodemon
```
> check more command script withen package.json
## 3rd Party Packages In Use
> nodemon -g || nodemon --save-dev
> express --save
> body-parser --save
> pug --save
> handlebars --save
> ejs --save
> mongoose --save
> express-session --save
> connect-mongodb-session --save
> bcryptjs --save
> csurf --save
> connect-flash --save
> nodemailer --save
> nodemailer-sendgrid-transport --save
> express-validator --save
> multer --save
> pdfkit --save
## DB solution
> Signup For MongoDB Atlas Dastabase as a Service
> Create A New Cluster
> Choose Free Tier MO Sandbox for Cluster
> Go To Security and Add one user with (Read and Write to any database)
> Add Current IP Address to cluster
> Select `Connect You Application` in Overview -> Connect
> You Can Download `MongoDB Compass` To Intract With Cloud Storage
for example
```
mongodb+srv://username:@cluster0-erk9k.mongodb.net/test?retryWrites=true
```
> npm install --save mongodb
## Mail Service
> [here](https://sendgrid.com/?opt=ns) Sign up for an acoount if you dont have one! and create an API key