Skip to content

slashdotdash/lambda-googlecharts

 
 

Repository files navigation

Google Chart generation for Lambda

Serverless Lambda wrapper around node-googlecharts.

Requirements

Install

Install project dependencies:

npm install

Deploy the service

Use this when you have made changes to your Functions, Events or Resources in serverless.yml or you simply want to deploy all changes within your Service at the same time.

serverless deploy -v

Deploy the function and endpoint

Use this to quickly upload and overwrite your function code, allowing you to develop faster.

serverless deploy function -f chart

Invoke the Function

Invokes a Function and returns logs.

serverless invoke -f chart -l

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

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%