- Clone down to your device
- In the root directory, run
npm install
to install node modules - Run
nodemon
to see your live server via local host in your browser.
- You can create a new account via the /signup route, then sign into the route with the /signin route. Use swagger.io.
{ "username": "TEST", "password": "TEST" }
In the command line at the root directory, run npm test
to make sure all test are passing as expected.
Use Code 401 JavaScript Assignment Runner
├── .gitignore
├── .eslintrc.json
├── __tests__
│ ├── auth.router.test.js
│ ├── basic-auth.test.js
│ ├── bearer-auth.test.js
│ ├── 500.test.js
│ ├── model-finder.test.js
│ ├── mongo.js
├── src
│ ├── auth
│ │ ├── router.js
│ │ ├── middleware
│ │ │ ├── basic.js
│ │ │ ├── bearer.js
│ │ │ ├── oauth.js
│ │ ├── models
│ │ │ ├── users-model.js
│ ├── middleware
│ │ ├── 404.js
│ │ ├── 500.js
│ │ ├── model-finder.js
│ ├── server.js
├── index.js
└── package.json
Pair progammed with Jason Taisey