https://github.com/codeforgeek/login-signup-system-mongodb
Simple and working user registration and authentication system built using Node, MongoDB and Redis.
https://github.com/codeforgeek/login-signup-system-mongodb
authentication mongodb nodejs redis signup user-registration
Last synced: about 1 year ago
JSON representation
Simple and working user registration and authentication system built using Node, MongoDB and Redis.
- Host: GitHub
- URL: https://github.com/codeforgeek/login-signup-system-mongodb
- Owner: codeforgeek
- Created: 2020-05-26T12:13:01.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T21:48:08.000Z (over 3 years ago)
- Last Synced: 2024-04-14T07:31:41.784Z (about 2 years ago)
- Topics: authentication, mongodb, nodejs, redis, signup, user-registration
- Language: JavaScript
- Homepage: https://codeforgeek.com/login-registration-system-node-mongodb-redis/
- Size: 205 KB
- Stars: 3
- Watchers: 3
- Forks: 5
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple User Login and Signup System
This is a simple and working user registration and authentication system built using Node, MongoDB and Redis.
MongoDB acts as a primary data store and Redis is used as a external session store.
## Requirements
You need to have following softwares installed in your system.
* Node (v11.15.0 or higher)
* MongoDB
* Redis
## How to run
Clone the repository and switch to it using the terminal.
Install the node dependencies.
```
npm install
```
Change the config.json file according to your system configuration.
```
{
"mongodbURL": "mongodb://localhost:27017/userDemo",
"redisHost": "localhost",
"redisPort": 6379,
"sessionSecret": "some-secret-hash",
"port": 3000,
"env": "development"
}
```
Then run the application using the following command.
```
node app.js
```
Navigate your browser to ```localhost:3000``` to view the app.