AWS lambda runs a specific Node version, so you need to install NVM
NVM uses node version at .nvmrc file by default
Setup the following configuration files
- backend/create/config-[ENV].json (eg: config-production.json or config-stage.json)
- Copy maya.example.json to maya.json
The configuration values for production environment is available at 1password vaults
# creates the `config-local.json` file
maya build- 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 backend service locally using aws-lambda compatible node/npm
# changes to compatible node on the terminal session
nvm use
# magic
npm start