Skip to content

Commit 4864a39

Browse files
authored
Merge pull request #56 from john0isaac/restructure-files
Restructure files
2 parents 3c3d0d1 + 8ed5cc7 commit 4864a39

Some content is hidden

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

42 files changed

+43
-31
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
}
5555
},
5656
// Use 'postCreateCommand' to run commands after the container is created.
57-
"postCreateCommand": "pip install -r requirements-dev.txt && pip install -e src",
57+
"postCreateCommand": "pip install -r requirements-dev.txt && pip install -e src/backend",
5858
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
5959
"remoteUser": "vscode"
6060
}

.github/workflows/app-tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ jobs:
5555
python -m pip install -r requirements-dev.txt
5656
- name: Install app as editable app
5757
run: |
58-
python -m pip install -e src
58+
python -m pip install -e src/backend
5959
- name: Setup local database with seed data
6060
run: |
6161
cp .env.sample .env
62-
python ./src/fastapi_app/setup_postgres_database.py
63-
python ./src/fastapi_app/setup_postgres_seeddata.py
62+
python ./src/backend/fastapi_app/setup_postgres_database.py
63+
python ./src/backend/fastapi_app/setup_postgres_seeddata.py
6464
- name: Setup node
6565
uses: actions/setup-node@v4
6666
with:

README.md

Lines changed: 4 additions & 4 deletions

azure.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
55
services:
66
web:
7-
project: ./src
7+
project: ./src/backend
88
language: py
99
module: web
1010
host: containerapp

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-r src/requirements.txt
1+
-r src/backend/requirements.txt
22
ruff
33
pre-commit
44
pip-tools

scripts/load_python_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ echo 'Creating Python virtual environment in .venv...'
44
python3 -m venv .venv
55

66
echo 'Installing dependencies from "requirements.txt" into virtual environment (in quiet mode)...'
7-
.venv/bin/python -m pip --quiet --disable-pip-version-check install -e src
7+
.venv/bin/python -m pip --quiet --disable-pip-version-check install -e src/backend
88
.venv/bin/python -m pip --quiet --disable-pip-version-check install -r requirements-dev.txt

scripts/setup_postgres_azurerole.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ if ([string]::IsNullOrEmpty($POSTGRES_HOST) -or [string]::IsNullOrEmpty($POSTGRE
77
exit 1
88
}
99

10-
python ./src/fastapi_app/setup_postgres_azurerole.py --host $POSTGRES_HOST --username $POSTGRES_USERNAME --app-identity-name $APP_IDENTITY_NAME
10+
python ./src/backend/fastapi_app/setup_postgres_azurerole.py --host $POSTGRES_HOST --username $POSTGRES_USERNAME --app-identity-name $APP_IDENTITY_NAME

scripts/setup_postgres_azurerole.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ fi
99

1010
. ./scripts/load_python_env.sh
1111

12-
.venv/bin/python ./src/fastapi_app/setup_postgres_azurerole.py --host $POSTGRES_HOST --username $POSTGRES_USERNAME --app-identity-name $APP_IDENTITY_NAME
12+
.venv/bin/python ./src/backend/fastapi_app/setup_postgres_azurerole.py --host $POSTGRES_HOST --username $POSTGRES_USERNAME --app-identity-name $APP_IDENTITY_NAME

scripts/setup_postgres_database.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ if ([string]::IsNullOrEmpty($POSTGRES_HOST) -or [string]::IsNullOrEmpty($POSTGRE
77
exit 1
88
}
99

10-
python ./src/fastapi_app/setup_postgres_database.py --host $POSTGRES_HOST --username $POSTGRES_USERNAME --password $POSTGRES_PASSWORD
10+
python ./backend/src/fastapi_app/setup_postgres_database.py --host $POSTGRES_HOST --username $POSTGRES_USERNAME --password $POSTGRES_PASSWORD

scripts/setup_postgres_database.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ POSTGRES_DATABASE=$(azd env get-values | grep POSTGRES_DATABASE | sed 's/="/=/'
44

55
. ./scripts/load_python_env.sh
66

7-
.venv/bin/python ./src/fastapi_app/setup_postgres_database.py --host $POSTGRES_HOST --username $POSTGRES_USERNAME --database $POSTGRES_DATABASE
7+
.venv/bin/python ./src/backend/fastapi_app/setup_postgres_database.py --host $POSTGRES_HOST --username $POSTGRES_USERNAME --database $POSTGRES_DATABASE

0 commit comments

Comments
 (0)