In this lab, we were given starter code that contained numerous bugs that needed fixing in order to get the application to work. In order to make sure everything worked as expected, we had a number of tests given to us to test against as we corrected the errors.
i.e.
PORT
- Port NumberDATABASE_URL
- location of Postgres DB (i.e. postgres://localhost:5432/api-app?sslmode=disable)SECRET
- secret used with bearer auth
- nodemon
- POST:
/signin
- route to signin with given user and password - POST:
/signup
- route to signup with given user and password - GET:
/users
- route to get all users with given bearer auth token - GET:
/secret
- route to access a secret
-
How do you run tests?
- npm test
-
Any tests of note?