A RESTful API for storing sensor data like temperature/humidity/co2, measured from a Raspberry Pi.
Structuring the project in the spirit of Uncle Bob's "Screaming Architecture", and dipping my toes into test driven development.
Built with Node.js, Express.js, TypeScript, MongoDB(Mongoose).
npm run generate-token -- <args>
The extra -- is required to pass the arguments to the command instead of to npm.
Example:
$ npm run generate-token -- -o Bob -i 1234
Outputs a jsonwebtoken to stdout that can be attached to the authorization header in requests.
This was made by following Alex Permiakov's post and then just modified and added on to.