ubclaunchpad / Internado

πŸŒͺ Find Internship Opportunities
3 stars 1 forks source link

Feature/30 auth #191

Closed kimoantiqe closed 5 years ago

kimoantiqe commented 5 years ago

Work In Progress PR

Feel free to to help / give suggestions

πŸ‘ Completed

πŸ”œ TODO

βš™οΈ To Test

Install Dependencies and launch auth server

 foo@bar:~$cd auth
 foo@bar:~$npm install
 foo@bar:~$npm run build
 foo@bar:~$npm start

In case bcrypt fails to install try

foo@bar:~$npm rebuild bcrypt --build-from-source

or downgrade it to version @2.0.1

Make api calls to server

You can use curl or your favourite API Development enviroment ( I prefer postman )

You can get the TOKEN by either loggin / while creating a new account

πŸ“– Some Useful readings

More Info on JasonWebTokens More Info on await-to style I am using More Info on Hashing Algorithm

kimoantiqe commented 5 years ago

@cowmanjoe yeah it should be password not pass, I have updated the comment to reflect that πŸ‘

kimoantiqe commented 5 years ago

@frostyshadows @cowmanjoe Thanks for the feedback guys πŸ˜„ πŸ‘ !!!

kimoantiqe commented 5 years ago

@cowmanjoe Wops , sherry requested to remove the /api from the routes and I totally forgot to update the PR’s body