Serverless API for the Naamat festival application
Requires global serverless package (at time of development, version 1.44.1 used) and AWS credentials (default profile: naamapi-admin).
Install jq if you want to use commands like yarn list:performers.
In order for AWS lambdas to access S3 and Onesignal, you need to setup a
VPC with NAT Gateway.
Run yarn to install dependencies.
In the appropriate .env file, set the following environment variables:
CONTENTFUL_ACCESS_TOKENAccess token to Contentful CDNCONTENTFUL_SPACE_IDSpaceId for Contentful SpaceSECURITY_GROUP_IDAWS VPC Security group idSUBNET_IDAWS VPC Subnet idONESIGNAL_APP_IDAppId from OnesignalONESIGNAL_REST_API_KEYPrivate REST API key from Onesignal
sls offline
sls deploy -s {stage}