Track sharing activities in a team.
yarn global add serverless
)Node.js 12
is installedcd
to app/
. gen_env.sh
to generate .env.devolopment
file
REGION=<region - e.g. us-east-1>
COGNITO_IDENTITYPOOL_ID=<id>
COGNITO_USERPOOL_ID=<id>
COGNITO_USERPOOL_CLIENT_ID=<id>
BUCKET_IMAGE=<bucket>
APPSYNC_API_KEY=<key>
APPSYNC_ENDPOINT=<endpoint>
. gen_env.sh <stage>
yarn
or npm i
to install packagesyarn start
or npm start
(or gatsby develop
)cd
to stack/
yarn
or npm i
to install packagessls offline
cd
to stack/
, then run serverless
and follow steps.env.production
file is setup correctly (similar to .env.development
, but different keys/ids)cd
to root folderbash
(Windows) or terminal
(Mac), then run . deploy.sh
cd
to stack/
sls deploy --stage <stage_name>
(allowed stages are currently: dev
, qa
, prod
)sls deploy function -f <fn_name>
app/
or stack/
folder, CloudFormation stack will be created and executed. See you more at .github/
folder..github/workflows/
folder)How to get Cognito info?
cd
to stack/
, then run sls info -v
How to seed user for testing?
.sh
file, then execute)
USERPOOL_ID=us-east-1_xxxxxxxx
USERNAME=your@user.name
PASSWORD=yourpwd
aws cognito-idp admin-create-user --user-pool-id $USERPOOL_ID --username $USERNAME
aws cognito-idp admin-set-user-password --user-pool-id $USERPOOL_ID --username $USERNAME --password $PASSWORD --permanent
stack/schema.graphql
amplify codegen
in stack
app/graphql
to use on client side stack/serverless.yml
type: AWS_LAMBDA
config:
functionName: newFunc
newFunc:
handler: handlers/funcHandler.index
handlers/funcHandler.js