Serverless services for generating exports from Eviction Lab data.
To install the main group of exports using Node 6, run npm install
in the root directory. Because of issues with deploying functions that use Chromeless in combination with functions that don't, the PDF export is in a separate service under the src/pdf/
directory. To install it as well, cd
into src/
and run npm install
.
In order to test out some of the canvas-based functionality locally, you'll need to install node-canvas
separately with npm install canvas
.
To deploy the service, you'll need to update the environment variables in both serverless.yml
files.
For a dev environment run:
npm run deploy-dev
For a production environment run:
npm run deploy
This application is open source code under the MIT License.