Skip to content

Commit df6388a

Browse files
committed
fix: update environment setup and backend port configuration
1 parent 2a5b2fc commit df6388a

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"ghcr.io/devcontainers/features/git:1": {}
1010
},
1111

12-
"postCreateCommand": "bash -c 'echo \"Installing system dependencies...\" && sudo apt update && sudo apt install -y libgl1-mesa-glx && echo \"Installing UV package manager...\" && curl -LsSf https://astral.sh/uv/install.sh | sh && echo \"Installing Python dependencies...\" && cd backend && cp .env.example .env && echo \"Installing frontend dependencies...\" && cd ../frontend && npm install --legacy-peer-deps'",
12+
"postCreateCommand": "bash -c 'echo \"Installing system dependencies...\" && sudo apt update && sudo apt install -y libgl1-mesa-glx && echo \"Installing UV package manager...\" && curl -LsSf https://astral.sh/uv/install.sh | sh && echo \"Installing Python dependencies...\" && cd backend && cp .env.example .env && echo \"Installing frontend dependencies...\" && cd ../frontend && cp .env.example .env && npm install --legacy-peer-deps'",
1313

1414
"customizations": {
1515
"vscode": {

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ The environment variables will be defined below.
8282

8383
```bash
8484
cd frontend
85+
cp .env.example .env
8586
```
8687

8788
##### 3.2 Install Dependencies
@@ -113,7 +114,7 @@ npm install --legacy-peer-deps
113114

114115
2. Configure your Storage Account in the frontend:
115116
```bash
116-
code frontend/next.config.ts
117+
code frontend/.env
117118
```
118119
Replace `<storage-account-name>` with your actual Azure storage account name.
119120

@@ -125,7 +126,7 @@ Once everything is set up:
125126

126127
```bash
127128
cd backend
128-
uv run fastapi dev
129+
uv run main.py
129130
```
130131

131132
The backend server will start on http://localhost:8000. You can verify it's running by visiting http://localhost:8000/api/v1/health in your browser.

backend/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ def health_check():
5555
# This allows the file to be run directly with `python backend/main.py`
5656
if __name__ == "__main__":
5757
import uvicorn
58-
uvicorn.run("main:app", host="0.0.0.0", port=80, reload=True)
58+
uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)

frontend/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CSTORAGE_ACCOUNT_NAME=<your-storage-account0name>

frontend/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ yarn-error.log*
3131
.pnpm-debug.log*
3232

3333
# env files (can opt-in for committing if needed)
34-
.env*
34+
.env
3535

3636
# vercel
3737
.vercel

0 commit comments

Comments
 (0)