-
Install Node.js here: https://nodejs.org/en/
-
Add
/usr/local/bin
to your $PATH variable (if not already present)- cd /etc
- vim paths
- add
/usr/local/bin
to the file
-
Add the
.env
file (see repo owner) -
Add the
firebase-key.json
file (see repo owner) -
Run
npm install
to install dependencies -
Run
npm start
to start the node server -
Access the endpoint locally at this address: http://localhost:3232/products/:id
Currently this project only includes unit tests. Integration tests were left out but could be easily integrated.
- Run
npm test
to kick off unit tests