Skip to content

Commit 36c5442

Browse files
Docs/219 move backend files into backend folder (#347)
* chore(docs): move backend files into backend folder * docs(docs): add readme table of contents
1 parent 3c44e1b commit 36c5442

122 files changed

Lines changed: 289 additions & 219 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.

.dockerignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ node_modules
33
.git
44
.gitignore
55
.env
6-
app/.env
6+
backend/app/.env
77
encrypted.env*
8-
app/data/
8+
backend/app/data/
99
*.md
1010
dist
1111
**/dist

.env.example

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ COMPOSE_PROJECT_NAME=openml-upload
77
# HTTPS origin, for example https://upload.example.com.
88
APP_BASE_URL=http://localhost:8000
99
CORS_ALLOWED_ORIGINS=http://localhost:8000,http://127.0.0.1:8000
10-
GITHUB_REDIRECT=http://localhost:8000/login/callback
1110

1211
# Caddy listens on these host ports. For production TLS, set
1312
# CADDY_SITE_ADDRESS to your domain and HTTP_PORT/HTTPS_PORT to 80/443.
@@ -22,8 +21,8 @@ POSTGRES_PASSWORD=change-me
2221
JWT_SECRET=change-me
2322
COOKIE_SECURE=false
2423

25-
# GitHub OAuth App credentials. The OAuth callback URL in GitHub must exactly
26-
# match GITHUB_REDIRECT.
24+
# GitHub OAuth App credentials. Configure the OAuth callback URL in GitHub
25+
# itself, for example http://localhost:8000/login/callback for local Compose.
2726
GITHUB_CLIENT_ID=
2827
GITHUB_SECRET=
2928
GITHUB_OAUTH_SCOPES=read:user,user:email,read:org

.github/CODEOWNERS

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
/.github/ @c0ffeeadd1c7
1212

1313
# Backend
14-
/app/ @koevoet1221 @gabrielmeleiro1
14+
/backend/app/ @koevoet1221 @gabrielmeleiro1
1515

1616
# Database
17-
/alembic/ @koevoet1221
18-
/app/database/ @koevoet1221
19-
/app/schemas/ @koevoet1221
20-
17+
/backend/alembic/ @koevoet1221
18+
/backend/app/database/ @koevoet1221
19+
/backend/app/schemas/ @koevoet1221

.github/workflows/docker-check.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ jobs:
4343
python-version: "3.12"
4444

4545
- name: Install backend dependencies
46-
run: pip install -r requirements.txt
46+
run: pip install -r backend/requirements.txt
4747

4848
- name: Configure local S3 bucket
49-
run: python scripts/setup_local_s3.py
49+
run: python backend/scripts/setup_local_s3.py
5050

5151
- name: Run backend S3 checks
52+
working-directory: backend
5253
run: |
5354
pytest \
5455
app/tests/unit/storage/test_config_and_factory.py \
@@ -72,6 +73,7 @@ jobs:
7273
uses: docker/build-push-action@v5
7374
with:
7475
context: .
76+
file: backend/Dockerfile
7577
push: false
7678
cache-from: type=gha
7779
cache-to: type=gha,mode=max

.github/workflows/docker-publish.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
uses: docker/build-push-action@v5
2525
with:
2626
context: .
27+
file: backend/Dockerfile
2728
push: false
2829

2930
build-and-push:
@@ -62,6 +63,7 @@ jobs:
6263
uses: docker/build-push-action@v5
6364
with:
6465
context: .
66+
file: backend/Dockerfile
6567
push: true
6668
tags: ${{ steps.meta.outputs.tags }}
6769
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
python-version: "3.14"
2828

2929
- name: Install Python deps
30-
run: pip install -r requirements.txt
30+
run: pip install -r backend/requirements.txt
3131

3232
- name: Install Pyright
3333
run: pnpm add -g pyright

.github/workflows/tests.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646

4747
test-backend:
4848
runs-on: ubuntu-latest
49+
defaults:
50+
run:
51+
working-directory: backend
4952
env:
5053
JWT_SECRET: test-jwt-secret
5154
COOKIE_SECURE: "false"
@@ -75,7 +78,7 @@ jobs:
7578
uses: actions/upload-artifact@v4
7679
with:
7780
name: backend-test-report
78-
path: test.xml
81+
path: backend/test.xml
7982
if-no-files-found: warn
8083

8184
test-e2e:

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ test.xml
1212
frontend/node_modules
1313

1414
#secrets
15-
app/.env
15+
backend/app/.env
1616
.env
1717

1818

1919
# Database
2020
app_dev.db
2121
.local_uploads/
22-
app/data/*
23-
!app/data/.gitkeep
22+
backend/app/data/*
23+
!backend/app/data/.gitkeep
2424

2525
# NixOS
2626
flake.nix

0 commit comments

Comments
 (0)