This microservice is meant to be used for generating an One Time Password (OTP) for a valid email, a mail is then sent to the said email using a email service provider (i.e. gmail), and later, also to verify the received OTP against the given email.
This microservice is build using template Grandeur Backend. It uses Redis as a data store.
- Production : https://ias-ms-otp.herokuapp.com
- Staging : https://stage-ias-ms-otp.herokuapp.com
| KEY | VALUE |
|---|---|
| HOST | Environment Link |
| API | /otp_email_api |
| NAME | METHOD | ENDPOINT | BODY |
|---|---|---|---|
| Generate OTP | POST | /generate | { "email: "[email protected]" } |
| Verify OTP | POST | /verify | { "otp": 123456, "email": "[email protected]"} |
NOTE : Please make sure you have yarn :: Installing yarn
- Initial setup
$ yarn install- To watch for changes
$ nodemonNOTE : Hosted using Heroku, Continuous Deployment using it for below branches.
- development -> https://stage-ias-ms-otp.herokuapp.com
- master -> https://ias-ms-otp.herokuapp.com