Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/acm-uiuc/core-api
Infra Core API (calendar, membership queries, checkout, and more)
https://github.com/acm-uiuc/core-api
Last synced: about 18 hours ago
JSON representation
Infra Core API (calendar, membership queries, checkout, and more)
- Host: GitHub
- URL: https://github.com/acm-uiuc/core-api
- Owner: acm-uiuc
- License: bsd-3-clause
- Created: 2024-08-05T17:45:19.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-08T03:16:56.000Z (9 days ago)
- Last Synced: 2024-11-08T03:24:47.928Z (9 days ago)
- Language: TypeScript
- Homepage: https://infra-core-api.aws.acmuiuc.org
- Size: 254 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ACM @ UIUC Core API
## Run Locally
1. Copy `.env.sample` as `.env` and set the `JwtSigningKey` to a random string.
2. Enable Tailscale VPN so you can reach the development database in AWS
3. Log into AWS with `aws configure sso` so you can retrieve the AWS secret and configuration.
4. `yarn -D`
5. `make check_account_dev` - If this fails make sure that AWS is configured.
6. `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 `AadClientSecret`.
```bash
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.
```bash
export AWS_PROFILE=ABC-DEV
```