Skip to main content

Local development

Platform​

git clone https://github.com/phimi-track/phimi-platform && cd phimi-platform
PHIMI_AUTH_SECRET=local-development-secret PHIMI_ALLOW_ANY_DEVICE=true \
PHIMI_INGEST_HTTP_BIND=127.0.0.1:9090 cargo run --bin phimi-ingest
cargo run --bin phimi-simulator -- --devices 4 --hold 60

PostGIS for the API and the migration test:

docker run -d --name phimi-pg -e POSTGRES_USER=phimi -e POSTGRES_PASSWORD=phimi \
-e POSTGRES_DB=phimi -p 5432:5432 postgis/postgis:17-3.5
PHIMI_DATABASE_URL=postgres://phimi:phimi@127.0.0.1:5432/phimi cargo run --bin phimi-api -- migrate
PHIMI_DATABASE_URL=postgres://phimi:phimi@127.0.0.1:5432/phimi cargo run --bin phimi-api

UI​

git clone https://github.com/phimi-track/phimi-ui && cd phimi-ui
corepack pnpm install --frozen-lockfile && corepack pnpm dev

Docs​

git clone https://github.com/phimi-track/phimi-docs && cd phimi-docs
corepack pnpm install --frozen-lockfile && corepack pnpm start