Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3a3c36e

Browse files
restrucutre files
1 parent 3c3d0d1 commit 3a3c36e

Some content is hidden

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

41 files changed

+41
-27
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 && pip install -e src",
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,13 @@ 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/backend
5859
python -m pip install -e src
5960
- name: Setup local database with seed data
6061
run: |
6162
cp .env.sample .env
62-
python ./src/fastapi_app/setup_postgres_database.py
63-
python ./src/fastapi_app/setup_postgres_seeddata.py
63+
python ./src/backend/fastapi_app/setup_postgres_database.py
64+
python ./src/backend/fastapi_app/setup_postgres_seeddata.py
6465
- name: Setup node
6566
uses: actions/setup-node@v4
6667
with:

‎README.md

Lines changed: 4 additions & 3 deletions

‎azure.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
template: rag-postgres-openai-python@0.0.1
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ 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/backend
78
.venv/bin/python -m pip --quiet --disable-pip-version-check install -e src
89
.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)

AltStyle によって変換されたページ (->オリジナル) /