Skip to content

jscarton/zn-plugin-lambda-function-runner

Repository files navigation

js-lambda-function-runner

How to use backend service locally (MacOS and Linux)

AWS lambda runs a specific Node version, so you need to install NVM

NVM uses node version at .nvmrc file by default

Configuration

Setup the following configuration files

The configuration values for production environment is available at 1password vaults

# creates the `config-local.json` file
maya build

Install dependencies

  • Navigate to the backend service path
  • install packages using aws-lambda compatible node/npm
# install the compatible node version
nvm install
# changes terminal session to use the compatible node version
nvm use
# install node modules
npm install
  • install _runner
  • create a new backend plugin on zengine
  • download draft zip
  • copy _runner folder to the backend plugin (alongside plugin.js and package.json)

Run locally

  • run backend service locally using aws-lambda compatible node/npm
# changes to compatible node on the terminal session
nvm use
# magic
npm start

About

zengine plugin which allow to configure buttons that triggers lambda functions execution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors