/shoppingcart

E-Commerce Shopping site using nodejs,Mongodb,stripe paymentgate way

Primary LanguageJavaScript

shoppingcart

E-Commerce Shopping site using nodejs

Express install

npm i express

nodemon install to run application

npm i nodemon

template engines

npm install --save ejs

https://ejs.co/#docs

npm install --save pug

official docs: https://pugjs.org/api/getting-started.html

npm install --save express-handlebars

install mysql2 package

npm i --save mysql2

install sequelize library alternative to mysql2

npm i --save sequelize

http://docs.sequelizejs.com/manual/associations.html

Install Mongodb

npm i --save mongodb

https://docs.mongodb.com/manual/crud/

Install mongoose

npm i --save mongoose

https://mongoosejs.com/docs/api.html

Install expression-session to manage the session

npm i --save express-session

To store session in mongodb

npm i --save connect-mongodb-session

https://github.com/mongodb-js/connect-mongodb-session

Password Encryption Library

npm i --save bcryptjs https://github.com/dcodeIO/bcrypt.js

Cross site Request Forgery to prevent session to got stolen

npm i --save csurf

https://www.acunetix.com/websitesecurity/csrf-attacks/

To show and error message and push it temporary in session and remove them.

npm i --save connect-flash

Send the email library

npm i --save nodemailer nodemailer-sendgrid-transport

https://sendgrid.com/docs/

https://nodemailer.com/about/

Validation at Server side:

npm install --save express-validator

Express-Validator Docs:

 https://express-validator.github.io/docs/

Validator.js (which is used behind the scenes) Docs:

 https://github.com/chriso/validator.js

Process the file upload request

npm i --save multer

PDF generation library

npm i pdfkit

Stripe Payment gateway integration

npm install stripe --save

Stripe.js Docs: https://stripe.com/docs

To Secure the Header:

npm i helmet --save

To compression the assets

npm i compression --save

To maintain the access log:

npm i morgan --save