Skip to content

A demo for user account registering and login using express-session for authentication purpose. (MVC) architecture

Notifications You must be signed in to change notification settings

purewebstar/nodejs-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User Account Register and Login Using SESSION

[NodeJs + ExpressJs + MongoDb + Ejs Template]

Dependencies to install

  • Express, bcrypt, cors, express-session, jquery, mdbootstrap, bootstrap, connect-mongodb-sesssion, mongoose, ejs, dotenv.
npm install --save express bcrypt cors express-session jquery mdbootstrap bootstrap connect-mongodb-session mongoose ejs dotenv

Dev Dependency to install

  • nodemon
npm install --save-dev nodemon

In package.json (add "type" : "module")

  • for ES6
"type": "module"

Add .env file and write your

DATABASE_URI=?
PORT=?
SESSION_SECRET_KEY=?

Run Project

nodemon app.js

Or

npm run devStart

About

A demo for user account registering and login using express-session for authentication purpose. (MVC) architecture

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published