Skip to content

Commit 51e250c

Browse files
committed
init
0 parents  commit 51e250c

406 files changed

Lines changed: 55622 additions & 0 deletions

File tree

Some content is hidden

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

.cspell.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"words": [
3+
"codegen",
4+
"edis",
5+
"embeddeds",
6+
"fontsource",
7+
"fortawesome",
8+
"frnk",
9+
"ftccmp",
10+
"ftcscout",
11+
"jank",
12+
"jemi",
13+
"jemison",
14+
"luxon",
15+
"mstd", // match score table descriptor
16+
"ocho",
17+
"offseason",
18+
"oprs",
19+
"powershot",
20+
"powershots",
21+
"qliso",
22+
"quals",
23+
"Reinis",
24+
"skystone",
25+
"skystones",
26+
"stateprov",
27+
"subpixels",
28+
"teleop",
29+
"teps",
30+
"threlte",
31+
"timestamptz",
32+
"tmps",
33+
"typeorm",
34+
"unsub",
35+
"xmark"
36+
]
37+
}

.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**/node_modules/
2+
**/tsconfig.tsbuildinfo
3+
4+
/.idea/
5+
.DS_Store
6+
7+
db.sql

.env.example

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Docker Compose env (optional)
2+
## Used by `docker compose -f compose/docker-compose.full.yml ...`
3+
4+
# Provide ONE of these:
5+
# - Easiest: paste `username:apikey` and the server will Base64 it automatically.
6+
FTC_API_KEY_RAW=
7+
# - Or provide the Base64 of `username:apikey`.
8+
FTC_API_KEY=
9+
10+
# Set to 1 to start the long-running FTC data sync on boot.
11+
SYNC_API=0

.github/workflows/server.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Docker Deploy Server
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- 'packages/common/**'
8+
- 'packages/server/**'
9+
workflow_dispatch:
10+
jobs:
11+
deploy:
12+
name: Build and Publish Image
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
attestations: write
18+
id-token: write
19+
steps:
20+
- name: Repo Checkout
21+
uses: actions/checkout@v4
22+
- name: Log in to the Container registry
23+
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.actor }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Extract metadata (tags, labels) for Docker
30+
id: meta
31+
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
32+
with:
33+
images: ghcr.io/ftc-scout/ftc-scout-server
34+
35+
- name: Build and push Docker image
36+
id: push
37+
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
38+
with:
39+
context: .
40+
file: ./packages/server/Dockerfile
41+
push: true
42+
tags: ${{ steps.meta.outputs.tags }}
43+
labels: ${{ steps.meta.outputs.labels }}
44+
# - name: Build Docker Image
45+
# run: sudo docker build . -f ./packages/server/Dockerfile -t ghcr.io/ftc-scout/ftc-scout-server:latest
46+
# - name: Upload Docker Image
47+
# run: sudo docker push ghcr.io/ftc-scout/ftc-scout-server:latest

.github/workflows/web.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Docker Deploy Web
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- 'packages/common/**'
8+
- 'packages/server/**'
9+
- 'packages/web/**'
10+
workflow_dispatch:
11+
jobs:
12+
deploy:
13+
name: Build and Publish Image
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
packages: write
18+
attestations: write
19+
id-token: write
20+
steps:
21+
- name: Repo Checkout
22+
uses: actions/checkout@v4
23+
- name: Log in to the Container registry
24+
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
25+
with:
26+
registry: ghcr.io
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- name: Extract metadata (tags, labels) for Docker
31+
id: meta
32+
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
33+
with:
34+
images: ghcr.io/ftc-scout/ftc-scout-web
35+
36+
- name: Build and push Docker image
37+
id: push
38+
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
39+
with:
40+
context: .
41+
file: ./packages/web/Dockerfile
42+
push: true
43+
tags: ${{ steps.meta.outputs.tags }}
44+
labels: ${{ steps.meta.outputs.labels }}
45+
secrets: |
46+
PUBLIC_FRONTEND_CODE=docker-frontend-code
47+
PUBLIC_SERVER_ORIGIN=api.ftcscout.org

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
**/node_modules/
2+
packages/*/dist/
3+
**/tsconfig.tsbuildinfo
4+
5+
/.idea/
6+
.DS_Store
7+
8+
.env
9+
.env.*
10+
!.env.example
11+
db.sql
12+
/compose/*
13+
!/compose/
14+
!/compose/docker-compose*.yml
15+
16+
# generated GraphQL schema for codegen
17+
packages/web/schema.graphql

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged
5+
npm run check

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20.11.1

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules/
2+
packages/*/dist/
3+
**/tsconfig.tsbuildinfo

.prettierrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 4,
3+
"printWidth": 100
4+
}

0 commit comments

Comments
 (0)