Skip to content

Commit 61432a1

Browse files
committed
first commit
0 parents  commit 61432a1

27 files changed

+8091
-0
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/**/*.d.ts

.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": ["airbnb-base", "plugin:prettier/recommended", "esnext"],
3+
"parserOptions": {
4+
"parser": "@typescript-eslint/parser"
5+
}
6+
}

.github/workflows/deploy-dev.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Deploy all resources to DEV
2+
run-name: DEV deploy - @${{ github.actor }}
3+
4+
on:
5+
workflow_dispatch:
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
test-unit:
11+
runs-on: ubuntu-latest
12+
name: Run Unit Tests
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python 3.11 for testing
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: 3.11
19+
- name: Set up Node for testing
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20.x
23+
- name: Run unit testing
24+
run: make test_unit
25+
deploy-dev:
26+
runs-on: ubuntu-latest
27+
concurrency:
28+
group: ${{ github.event.repository.name }}-dev
29+
cancel-in-progress: false
30+
environment: "AWS DEV"
31+
name: Deploy to AWS DEV
32+
needs:
33+
- test-unit
34+
steps:
35+
- uses: actions/checkout@v3
36+
- uses: aws-actions/setup-sam@v2
37+
with:
38+
use-installer: true
39+
- name: Set up Python 3.11
40+
uses: actions/setup-python@v5
41+
with:
42+
python-version: 3.11
43+
- name: Set up Node 20.x
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: 20.x
47+
- uses: aws-actions/configure-aws-credentials@v2
48+
with:
49+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
50+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
51+
aws-region: us-east-1
52+
- run: make deploy_dev
53+
test:
54+
runs-on: ubuntu-latest
55+
name: Run Live Integration Tests
56+
needs:
57+
- deploy-dev
58+
steps:
59+
- uses: actions/checkout@v3
60+
- name: Set up Python 3.11 for testing
61+
uses: actions/setup-python@v5
62+
with:
63+
python-version: 3.11
64+
- name: Run live testing
65+
run: make test_live_integration

.github/workflows/deploy-prod.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
name: Deploy all resources to DEV/PROD
2+
run-name: DEV/PROD deploy - @${{ github.actor }}
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches:
8+
- main
9+
jobs:
10+
test-unit:
11+
runs-on: ubuntu-latest
12+
name: Run Unit Tests
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python 3.11 for testing
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: 3.11
19+
- name: Set up Node for testing
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20.x
23+
- name: Run unit testing
24+
run: make test_unit
25+
deploy-dev:
26+
runs-on: ubuntu-latest
27+
concurrency:
28+
group: ${{ github.event.repository.name }}-dev
29+
cancel-in-progress: false
30+
environment: "AWS DEV"
31+
name: Deploy to AWS DEV
32+
needs:
33+
- test-unit
34+
steps:
35+
- uses: actions/checkout@v3
36+
- uses: aws-actions/setup-sam@v2
37+
with:
38+
use-installer: true
39+
- name: Set up Python 3.11
40+
uses: actions/setup-python@v5
41+
with:
42+
python-version: 3.11
43+
- name: Set up Node 20.x
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: 20.x
47+
- uses: aws-actions/configure-aws-credentials@v2
48+
with:
49+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
50+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
51+
aws-region: us-east-1
52+
- run: make deploy_dev
53+
test:
54+
runs-on: ubuntu-latest
55+
name: Run Live Integration Tests
56+
needs:
57+
- deploy-dev
58+
steps:
59+
- uses: actions/checkout@v3
60+
- name: Set up Python 3.11 for testing
61+
uses: actions/setup-python@v5
62+
with:
63+
python-version: 3.11
64+
- name: Run live testing
65+
run: make test_live_integration
66+
deploy-aws-prod:
67+
runs-on: ubuntu-latest
68+
name: Deploy to AWS PROD
69+
concurrency:
70+
group: ${{ github.event.repository.name }}-prod
71+
cancel-in-progress: false
72+
needs:
73+
- test
74+
environment: "AWS PROD"
75+
steps:
76+
- uses: actions/checkout@v3
77+
- uses: aws-actions/setup-sam@v2
78+
with:
79+
use-installer: true
80+
- name: Set up Python 3.11
81+
uses: actions/setup-python@v5
82+
with:
83+
python-version: 3.11
84+
- name: Set up Node 20.x
85+
uses: actions/setup-node@v4
86+
with:
87+
node-version: 20.x
88+
- uses: aws-actions/configure-aws-credentials@v2
89+
with:
90+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
91+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
92+
aws-region: us-east-1
93+
- run: make deploy_prod
94+
health-check-prod:
95+
runs-on: ubuntu-latest
96+
name: Confirm services healthy
97+
needs:
98+
- deploy-aws-prod
99+
steps:
100+
- uses: actions/checkout@v3
101+
- name: Call the health check script
102+
run: make prod_health_check

.gitignore

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
.pnpm-debug.log*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30+
.grunt
31+
32+
# Bower dependency directory (https://bower.io/)
33+
bower_components
34+
35+
# node-waf configuration
36+
.lock-wscript
37+
38+
# Compiled binary addons (https://nodejs.org/api/addons.html)
39+
build/Release
40+
41+
# Dependency directories
42+
node_modules/
43+
jspm_packages/
44+
45+
# Snowpack dependency directory (https://snowpack.dev/)
46+
web_modules/
47+
48+
# TypeScript cache
49+
*.tsbuildinfo
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Optional stylelint cache
58+
.stylelintcache
59+
60+
# Microbundle cache
61+
.rpt2_cache/
62+
.rts2_cache_cjs/
63+
.rts2_cache_es/
64+
.rts2_cache_umd/
65+
66+
# Optional REPL history
67+
.node_repl_history
68+
69+
# Output of 'npm pack'
70+
*.tgz
71+
72+
# Yarn Integrity file
73+
.yarn-integrity
74+
75+
# dotenv environment variable files
76+
.env
77+
.env.development.local
78+
.env.test.local
79+
.env.production.local
80+
.env.local
81+
82+
# parcel-bundler cache (https://parceljs.org/)
83+
.cache
84+
.parcel-cache
85+
86+
# Next.js build output
87+
.next
88+
out
89+
90+
# Nuxt.js build / generate output
91+
.nuxt
92+
dist
93+
94+
# Gatsby files
95+
.cache/
96+
# Comment in the public line in if your project uses Gatsby and not Next.js
97+
# https://nextjs.org/blog/next-9-1#public-directory-support
98+
# public
99+
100+
# vuepress build output
101+
.vuepress/dist
102+
103+
# vuepress v2.x temp and cache directory
104+
.temp
105+
.cache
106+
107+
# Docusaurus cache and generated files
108+
.docusaurus
109+
110+
# Serverless directories
111+
.serverless/
112+
113+
# FuseBox cache
114+
.fusebox/
115+
116+
# DynamoDB Local files
117+
.dynamodb/
118+
119+
# TernJS port file
120+
.tern-port
121+
122+
# Stores VSCode versions used for testing VSCode extensions
123+
.vscode-test
124+
125+
# yarn v2
126+
.yarn/cache
127+
.yarn/unplugged
128+
.yarn/build-state.yml
129+
.yarn/install-state.gz
130+
.pnp.*
131+
132+
# AWS SAM
133+
.aws-sam/
134+
build/
135+
dist/

LICENSE

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2024, ACM@UIUC
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
1. Redistributions of source code must retain the above copyright notice, this
9+
list of conditions and the following disclaimer.
10+
11+
2. Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
15+
3. Neither the name of the copyright holder nor the names of its
16+
contributors may be used to endorse or promote products derived from
17+
this software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)