Skip to content

Commit 63654d6

Browse files
committed
Add Aya ui, backend, analytics app
1 parent a5d6dde commit 63654d6

File tree

300 files changed

+38840
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

300 files changed

+38840
-1
lines changed

.github/pull_request_template.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# What does this PR do?
2+
3+
<!-- delete this line and add details -->
4+
5+
## Where are the changes made?
6+
7+
- [ ] Frontend
8+
- [ ] Backend
9+
- [ ] Misc (ops scripts, actions, analytics, etc)
10+
11+
## Related Issue(s)
12+
13+
<!-- delete this line and add issues -->
14+
15+
## Screenshots (for UI changes)
16+
17+
<!-- delete this line and add mobile and desktop screenshots for UI changes -->
18+
19+
## These changes have been tested:
20+
21+
- [ ] Manually
22+
- [ ] Via automated tests
23+
- [ ] Both

.github/workflows/eslint.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: ESLint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- frontend/
9+
pull_request:
10+
branches:
11+
- main
12+
paths:
13+
- frontend/**
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Check out repository
21+
uses: actions/checkout@v2
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: 19
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
working-directory: frontend
31+
32+
- name: Run ESLint
33+
run: npm run lint
34+
working-directory: frontend

.github/workflows/lighthouse.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Lighthouse
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
paths:
11+
- 'frontend/**'
12+
13+
jobs:
14+
lighthouse:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v2
20+
21+
- name: Setup Node.js environment
22+
uses: actions/setup-node@v2
23+
with:
24+
node-version: 19
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
working-directory: frontend
29+
30+
- name: Build frontend
31+
run: CI=false npm run build
32+
working-directory: frontend
33+
34+
- name: Run Lighthouse CI
35+
run: |
36+
npm install -g @lhci/cli
37+
lhci autorun
38+
working-directory: frontend

.github/workflows/run-pytest.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Backend unit tests
2+
3+
on:
4+
push:
5+
branches: [ "staging", "production"]
6+
pull_request:
7+
paths:
8+
- backend/**
9+
- docker/Dockerfile.postgres
10+
11+
defaults:
12+
run:
13+
working-directory: ./backend
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
22+
services:
23+
postgres:
24+
image: postgres:14
25+
env:
26+
POSTGRES_USER: backendapp
27+
POSTGRES_PASSWORD: password
28+
POSTGRES_DB: instruct_multilingual
29+
ports:
30+
- 5432:5432
31+
# set health checks to wait until postgres has started
32+
options: >-
33+
--health-cmd pg_isready
34+
--health-interval 10s
35+
--health-timeout 5s
36+
--health-retries 2
37+
38+
steps:
39+
- uses: actions/checkout@v3
40+
41+
- name: build and run postgres docker container
42+
uses: docker/build-push-action@v2
43+
with:
44+
context: ./docker/
45+
file: ./docker/Dockerfile.postgres
46+
push: false
47+
tags: database:latest
48+
49+
- name: set up python 3.10
50+
id: pythonsetup
51+
uses: actions/setup-python@v3
52+
with:
53+
python-version: "3.10"
54+
55+
- name: install dependencies
56+
if: steps.pythonsetup.outcome == 'success'
57+
id: dependencies
58+
run: |
59+
pip install -U pip
60+
pip install poetry
61+
poetry install --with dev
62+
63+
- name: run pytest unit tests
64+
if: steps.dependencies.outcome == 'success'
65+
run: |
66+
ENVIRONMENT=test poetry run pytest

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: NPM Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- frontend/
9+
pull_request:
10+
branches:
11+
- main
12+
paths:
13+
- frontend/**
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v2
22+
23+
- name: Setup Node.js environment
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: 19
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
working-directory: frontend
31+
32+
- name: Run tests
33+
run: npm test
34+
working-directory: frontend

.gitignore

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
*.csv
26+
*.ipynb_checkpoints/
27+
28+
# python auto generated files
29+
*__pycache__
30+
*.pyc
31+
*.pyo
32+
33+
# env files
34+
.env
35+
*.env.local
36+
*.env.staging*
37+
*.env.prod*
38+
*.env.team-instruct-multilingual-app.prod
39+
*.env.analytics-instruct-multilingual-app.prod
40+
.python-version
41+
42+
# Project
43+
discord_credentials.json
44+
45+
# ssl connections files
46+
*.pem
47+
48+
# Coverage reports
49+
coverage
50+
51+
# Lighthouse
52+
.lighthouseci

0 commit comments

Comments
 (0)