Node.js server for SWAPR
Our current model frontend lives in gatech-swapr-client
Our API lives on apiary.io
On OS X, install Homebrew, then do
brew install node
npm install -d
The tokens used in test-data.json were generated using "secret" as the secret in the signature. The claims included in the token are id, username, and role.
npm test
Note: Please go to company_practice_server/models/user.js to see an example of password hashing.
The username/password combos are in test/test-data.json
Hashes/salts are generated from https://www.bcrypt-generator.com. The bcrypt implementation uses only 10^8 iterations of the key derivation function (i.e., a "cost" of 08, as indicated by the $08 near the beginning of each salted hash). 10^12 is apparently best practice these days.