A REST api to be consumed by a mobile app, which is somewhat similar to various popular apps which tell you if a number is spam, or allow you to find a person’s name by searching for their phone number
npm install
- setup .env file using .env_example file
npm start
- post: http://localhost:3000/auth/signup
- payload: { "name": "aviral yadav", "number": "1234567888", "password": "masterpassword", "confirmPassword": "masterpassword" }
- post: http://localhost:3000/auth/signin
- payload: { "number": "1234567888", "password": "masterpassword" }
- get: http://localhost:3000/search/1234567888
- set cookies from response object of signin
- cookie name = jwt