Skip to content

Node.js session management using Express.js and Express-Session

Notifications You must be signed in to change notification settings

homhom2012z/nodejs-express-sessions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nodejs-Auth-Sessions

Node.js session management using Express.js and Express-Session

Stack used:

Backend

  • MongoDB(Mongoose with MongoDB atlas)
  • Node.js with Express

Client

Core dependencies:

  • express-session
  • connect-mongodb-session
  • bcryptjs
  • cors

Getting Started

First, run the development server:

npm run start
# or
yarn start

Open http://localhost:5000 with your browser to see the result for backend.
Open http://localhost:3000 with your browser to see the result for client.

Or, you can run a bash file to start the development server directly (start.sh)

Configuration

Provide your MongoDB URI in .env file in backend:

MONG_URI="YOUR_MONGO_DB_URI"

About

Node.js session management using Express.js and Express-Session

Topics

Resources

Stars

Watchers

Forks