An open API service indexing awesome lists of open source software.

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

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