Skip to content

AppGambitStudio/calendly-appsync

Repository files navigation

image info

Create Config file

Copy the sample.config.json file and create the config.<stage>.json file and set the correct values.

Lumigo Signup

I am using Lumigo as a monitoring service for this application. They have a Free Tier so you can signup and generate the application token without any additional cost.

Signup from here - https://lumigo.io/

Deploy

sls deploy --stage <your stage> --region us-east-1

Cognito Signup

Amazon Cognito URL for User Signup

  • Replace Stage with your stage name
  • Replace WEBCLIENTID with your Cognito Web Client ID

https://calendly-app-STAGE.auth.us-east-1.amazoncognito.com/signup?response_type=token&client_id=WEBCLIENTID&redirect_uri=http://localhost:8080

Cognito Signin

Amazon Cognito URL for User Login

  • Replace Stage with your stage name
  • Replace WEBCLIENTID with your Cognito Web Client ID

https://calendly-app-STAGE.auth.us-east-1.amazoncognito.com/login?response_type=token&client_id=WEBCLIENTID&redirect_uri=http://localhost:8080

Postman Collection

You can use this shared Postman Collection to test all the APIs that are deployed as part of this backend.

https://www.getpostman.com/collections/897bec601f5671069a0a

Once you import the collection you will have to update the variables in the collection. Go to the Collecion variables and set the APPSYNC_URL, API_ID, APIGW_URL and the COGNITO_ACCESS_TOKEN. You can get the cognito access token after doing a successful login with your user in Cognito Hosted UI.

Clean up

Make sure you empty the S3 Web Hosting bucket first before removing the backend stack.

aws s3 rm --recursive <S3 Bucket>

Run the sls remove to clean up all the deployed resources.

sls remove --stage <your stage> --region us-east-1