Check out the accompanying blogpost of this repository.
Install dependencies
npm install
To test, run
npm test
To build, run
npm run build
This project makes use of the Serverless Framework for deployment.
To deploy,
- Make sure you've created a
Google Storagebucket in your Google Cloud account. (default in code iswater-meter) - Change your project and service name in the
serverless.ymlfile, and update the path to your localjsonkey file. - Next, run
npm run deploy
Test your deployment by uploading pictures to your bucket with gsutil command line utility:
gsutil cp ./data/your-picture.jpg gs://water-meter
