Skip to content

vanhumbeecka/water-meter

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

Water meter parser

Check out the accompanying blogpost of this repository.

Architecture

Architecture

Local development

Install dependencies

npm install

To test, run

npm test

To build, run

npm run build

Deployment

This project makes use of the Serverless Framework for deployment.

To deploy,

  • Make sure you've created a Google Storage bucket in your Google Cloud account. (default in code is water-meter)
  • Change your project and service name in the serverless.yml file, and update the path to your local json key 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