Skip to content

zallek/lambda-googlecharts

Repository files navigation

Google Chart generation for Lambda

Serverless Lambda wrapper around node-googlecharts.

Requirements

Install

Initializes a new Serverless project. more info

serverless project init -c true

Install project dependencies

npm install

Run functions locally

serverless function run generate-svg

Deploy your functions and endpoints:

serverless dash deploy

FAQ

Why spawning a child process to run node-googlecharts?

node-googlecharts needs system dependencies that require specific environment variables to run. Unfortunately, AWS Lambda does not allow to define custom env variables for the whole lambda. Indeed, spawning child processes seem to be the recommended way according to amazon. more info