Merge remote-tracking branch 'origin/main'

This commit is contained in:
2025-11-13 14:16:30 +01:00

View File

@@ -205,7 +205,7 @@ uvicorn app.app:fastApi --reload --host 0.0.0.0 --port 8000
### 6) Run Celery worker (optional, in another terminal) ### 6) Run Celery worker (optional, in another terminal)
```bash ```bash
cd Group-8/7project/backend cd Group-8/7project/src/backend
source .venv/bin/activate source .venv/bin/activate
celery -A app.celery_app.celery_app worker -l info celery -A app.celery_app.celery_app worker -l info
``` ```
@@ -235,7 +235,7 @@ docker buildx build --platform linux/amd64,linux/arm64 -t CHANGE_ME --push .
### Frontend ### Frontend
```bash ```bash
cd project7/frontend cd project7/src/frontend
npm ci npm ci
npm run build npm run build
``` ```
@@ -254,7 +254,7 @@ running on top of Proxmox VE.
4) Navigate to tofu directory 4) Navigate to tofu directory
```bash ```bash
cd 7project/tofu cd 7project/src/tofu
```` ````
5) Set IP addresses in environment variables 5) Set IP addresses in environment variables
@@ -426,7 +426,7 @@ See the workflow [here](../.github/workflows/run-tests.yml).
If you want to run the tests locally, the preferred way is to use a [bash script](backend/test_locally.sh) If you want to run the tests locally, the preferred way is to use a [bash script](backend/test_locally.sh)
that will start a test DB container with [docker compose](backend/docker-compose.test.yml) and remove it afterwards. that will start a test DB container with [docker compose](backend/docker-compose.test.yml) and remove it afterwards.
```bash ```bash
cd 7project/backend cd 7project/src/backend
bash test_locally.sh bash test_locally.sh
``` ```
@@ -484,7 +484,10 @@ curl -H "Authorization: Bearer $TOKEN" http://127.0.0.1:8000/authenticated-route
### Frontend ### Frontend
- Start with: npm run dev in 7project/frontend - Start with:
```bash
npm run dev in 7project/src/frontend
```
- Ensure VITE_BACKEND_URL is set to the backend URL (e.g., http://127.0.0.1:8000) - Ensure VITE_BACKEND_URL is set to the backend URL (e.g., http://127.0.0.1:8000)
- Open http://localhost:5173 - Open http://localhost:5173
- Login, view latest transactions, filter, and add new transactions from the UI. - Login, view latest transactions, filter, and add new transactions from the UI.