You want a comprehensive user sign-up/sign-in system I strongly suggest you take a look at this repo.
The system that will send an activation link to your e-mail after registration (The user isn't save to the database without clicking the activation link)
- NodeJS
- MongoDB
- Mongoose
- PassportJS
- JWT
- Express
- EJS
- Nodemailer
- BcryptJS
- Connect-Flash
git clone https://github.com/Furkan-Gulsen/nodejs-auth-system.git
npm install
npm start
The Server should now be running at http://localhost:3300/
!Note:
- Environment file and don't forget to add the following values:
PASS=***
EMAIL=***
JWT_KEY=***
JWT_RESET_KEY=***