Steps to run this project:
- Run
npm i
command - Run
npm run start
command
- Use the following value in
Client-Auth
headerBasic dGVzdENsaWVudDp0ZXN0UGFzc3dvcmQ=
otherwise API's will throw unauthorized error - Call
/user/signup
request first to create your user and get the authentication token - Use the token value in
Authorization
header in following formatBearer {{token}}
to call the post API's
- The password's are stored in plain text as the bcrypt library is currently not supported in Mac M1. For more details visit this link: kelektiv/node.bcrypt.js#868
- Although the passwords are stored in plain text but approach to match the user credentials is taken in a similar way as they are stored in encrypted format.
- The .env file is not supposed to commit on git repository but in order to make it work just by cloning I am committing this file