Skip to content

acm-uiuc/core-api

Repository files navigation

Example ACM@UIUC Node-based API using AWS Lambda/API Gateway

Run Locally

  1. yarn -D
  2. make check_account_dev - If this fails make sure that AWS is configured.
  3. make local

Build for AWS Lambda

  1. make clean
  2. make build

Deploy to AWS env

  1. Get AWS credentials with aws configure sso
  2. Ensure AWS profile is set to the right account (DEV or PROD).
  3. Run make deploy_dev or make deploy_prod.

Generating JWT token

Create a .env file containing your CLIENT_SECRET.

node --env-file=.env get_msft_jwt.js

Configuring AWS

SSO URL: https://acmillinois.awsapps.com/start/#

aws configure sso

Log in with SSO. Then, export the AWS_PROFILE that the above command outputted.

export AWS_PROFILE=ABC-DEV