$ yarn install
$ yarn dev
$ yarn start
Middleware functions are functions that have access to the request object (req
), the response object (res
), and the next middleware function in the application’s request-response cycle.
Middleware can be at the application level or at the router level.
We are using Firebase cloud fire store for our database.
To setup a connection to the database:
- Have a look in your project slack channel for a pinned JSON file called
firebase-credentials.json
. - Create a
firebase-credentals.json
file in the root directory of this repository and copy the contents from the file in the slack channel - Run
yarn dev
and if everything is running smoothly you should see no errors
To query the database you will need to require
the db
instance that is exported from index.js
. You can use the firebase docs and have a look under the node.js tab for examples.
Using jest
and supertest
for API testing.
In order to keep a clean git history merges should always be squashed with a consistent commit message style.