Published postman documentation of https://documenter.getpostman.com/view/20576167/2s9YCARqVj
List and describe the available API endpoints here.
- POST
/user/sendOtp
- send otp using Twilio library.
- POST
/users/register
- user can register after otp validation.
- The user can register only if their mobile is verified.
- After successful registration gets deleted from the table.
- The otp gets deleted automatically after 5 minutes(valid only for 5 minutes) ...
- Ensure you have Node.js, Nodemon, Express, Twilio, , and mongoose installed on your system.
- Clone the repository:
https://github.com/codingXpert/Otp-based-registration-
- Install the dependencies:
npm install
- Start the server:
npm start
- The API will be available at
http://localhost:8000
.