Node.js session management using Express.js and Express-Session
Backend
- MongoDB(Mongoose with MongoDB atlas)
- Node.js with Express
Client
- express-session
- connect-mongodb-session
- bcryptjs
- cors
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)
Provide your MongoDB URI in .env file in backend:
MONG_URI="YOUR_MONGO_DB_URI"