Simple and plain IAM.
- Node.js REST API with front-end in React
- User storage in MongoDB
- Secure password storage using bcrypt hashing
- Authorization token generation using JWT
- Email verification on sign up using nodemailer and JWT
- Password reset functionality, also using nodemailer and JWT
MONGODB_URL=mongodb://localhost:27017/gymrats
PORT=4000
URL=http://localhost:3000
JWT_SECRET=verysecret
[email protected]
MAILER_AUTH_PASSWORD=plsdonthackme
MONGODB_URL
: MongoDB server urlPORT
: The port the server will listen toURL
: The URL of the client appJWT_SECRET
: The secret used for creating JWT tokensMAILER_AUTH_USER
: The Google username used for sending emailsMAILER_AUTH_PASSWORD
: The Google app-specific password used for sending emails
REACT_APP_API_BASE_URL=http://localhost:4000/api
REACT_APP_LS_TOKEN_KEY=myapp_token
REACT_APP_API_BASE_URL
: The base URL used to prefix back-end requestsREACT_APP_LS_TOKEN_KEY
: The local storage key used to store the JWT authentication token