Update setup

This commit is contained in:
Andras Schmelczer 2026-01-25 21:09:42 +00:00
parent 8c74f0a0bc
commit ced6b16140
2 changed files with 27 additions and 2 deletions

View file

@ -1,5 +1,12 @@
# Property Map # Property Map
## Dev setup
```sh
curl -1sLf 'https://dl.cloudsmith.io/public/task/task/setup.deb.sh' | sudo -E bash
task install
```
## Area ## Area
1. 45 min commute (perhaps near train station) 1. 45 min commute (perhaps near train station)
@ -34,3 +41,7 @@
## Action plan ## Action plan
1. use openstreetmap api to get the map 1. use openstreetmap api to get the map
## Data
- Postcode -> GPS: <https://www.arcgis.com/sharing/rest/content/items/077631e063eb4e1ab43575d01381ec33/data>

View file

@ -2,9 +2,12 @@ version: '3'
tasks: tasks:
install: install:
desc: Install all dependencies desc: Install dependencies, generate client, and download data
cmds: cmds:
- uv sync - 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 - cd frontend && npm install
pipeline: pipeline:
@ -16,9 +19,20 @@ tasks:
desc: Run FastAPI backend on port 8001 desc: Run FastAPI backend on port 8001
cmds: cmds:
- uv run fastapi dev server/main.py --port 8001 - uv run fastapi dev server/main.py --port 8001
frontend: frontend:
desc: Run frontend dev server on port 3030 (proxies /api to :8001) desc: Run frontend dev server on port 3030 (proxies /api to :8001)
dir: frontend dir: frontend
cmds: cmds:
- npm run dev - 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