Skip to content

penttinj/rpi-data-api

Repository files navigation

rpi-data-api

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).

Generate authentication token

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.

Credits

This was made by following Alex Permiakov's post and then just modified and added on to.

About

Stores my rpi's sensor data and serves it to the irc bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors