OSMAINT

Academy / Developer

The repository and the stack

Lesson 1 of 612 minDevelopers, integrators, partners

Goal

Find your way around the tree and get a working local build.

The repository is one product with four runtimes: a Go server, a React web client, a Flutter mobile app and a Go MCP server. The database is PostgreSQL with PostGIS.

The tree

  • cmd/server: the Go API and the migration runner.
  • cmd/mcp: the MCP server that exposes OSMAINT tools to AI clients.
  • web/src: the React and TypeScript client, one file per module.
  • mobile: the Flutter app, offline-first.
  • site: the static marketing site and this Academy, generated from Python.
  • docs: architecture, data model, self-hosting, MCP and parity documents.
  • deploy: compose files, backup, upgrade and security test scripts.
  • schema: the SQL schema and seed data.

Local prerequisites

  • Go 1.23 or newer.
  • Node 20 or newer.
  • PostgreSQL 16 with PostGIS 3.4.
  • Flutter for the mobile app.

Run it

cd cmd/server && go build ./... && go run .
cd web && npm ci && npm run dev
# web on http://localhost:3000, api on http://localhost:8080

The server applies migrations on start. A fresh database gets the schema, the seed roles and the industry packs. The development login is [email protected] / admin and must never reach a public server.

Note

Read CONTRIBUTING.md before your first pull request. The project's non-negotiables are there: self-host first, standards as data, AI without a hard dependency, no database null types leaking into JSON.

Verify

Build the server and the web client, open the app, log in and create one work order. You have a working development loop.

Terms

PostGIS
The PostgreSQL extension for spatial data. OSMAINT uses it for asset positions, areas and linear assets.
MCP
Model Context Protocol: the interface that lets an AI client call OSMAINT tools.
Progress is stored in this browser only.

OSMAINT Academy · Developer · The repository and the stack · osmaint.org/academy/