Update setup
This commit is contained in:
parent
8c74f0a0bc
commit
ced6b16140
2 changed files with 27 additions and 2 deletions
18
Taskfile.yml
18
Taskfile.yml
|
|
@ -2,9 +2,12 @@ version: '3'
|
|||
|
||||
tasks:
|
||||
install:
|
||||
desc: Install all dependencies
|
||||
desc: Install dependencies, generate client, and download data
|
||||
cmds:
|
||||
- uv sync
|
||||
- uv run python generate_tfl_client.py
|
||||
- uv run python download_land_registry.py
|
||||
- uv run python download_arcgis_data.py
|
||||
- cd frontend && npm install
|
||||
|
||||
pipeline:
|
||||
|
|
@ -16,9 +19,20 @@ tasks:
|
|||
desc: Run FastAPI backend on port 8001
|
||||
cmds:
|
||||
- uv run fastapi dev server/main.py --port 8001
|
||||
|
||||
|
||||
frontend:
|
||||
desc: Run frontend dev server on port 3030 (proxies /api to :8001)
|
||||
dir: frontend
|
||||
cmds:
|
||||
- npm run dev
|
||||
|
||||
build:
|
||||
desc: Build frontend for production
|
||||
dir: frontend
|
||||
cmds:
|
||||
- npm run build
|
||||
|
||||
prod:
|
||||
desc: Run production server (serves built frontend)
|
||||
cmds:
|
||||
- uv run fastapi run server/main.py --port 8001
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue