Serverless functions for the Treasure ecosystem
- Node v20+
Install dependencies:
npm install
Create an environment variables file based off the example and fill in with your values:
cp .env.example .env
Invoke any function locally by replacing functionName
in the following command:
serverless invoke local -f functionName
Merge changes to main
branch to automatically deploy to Treasure's AWS instance via GitHub Actions. Changes will be visible in ~5 minutes after cache expires.