diff --git a/README.md b/README.md index 9bc14f8..8e86027 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ # Property Map +## Dev setup + +```sh +curl -1sLf 'https://dl.cloudsmith.io/public/task/task/setup.deb.sh' | sudo -E bash +task install +``` + ## Area 1. 45 min commute (perhaps near train station) @@ -34,3 +41,7 @@ ## Action plan 1. use openstreetmap api to get the map + +## Data + +- Postcode -> GPS: diff --git a/Taskfile.yml b/Taskfile.yml index 32bab58..197fbcf 100644 --- a/Taskfile.yml +++ b/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