Skip to content

Latest commit

 

History

History
98 lines (68 loc) · 5.25 KB

getting-started.md

File metadata and controls

98 lines (68 loc) · 5.25 KB

Getting Started

Three ways to run OpenConstructionERP. Pick whichever fits your setup.

If a warning or an error shows up on the way, Installation help explains each one (also online, in Deutsch and Русский).

Path A: Desktop App (easiest)

Download the installer for your platform:

Run the installer, launch the app. First launch takes about one minute to set up the local database. No Python, no Docker, no terminal required.

On Windows the installer is not code signed yet. If Windows warns about an unknown publisher or Smart App Control blocks the app, see Windows blocks the app.

Path B: pip install

Requires Python 3.12+.

pip install --upgrade openconstructionerp
openconstructionerp

The package ships the FastAPI backend and a pre-built React frontend in a single wheel. On first run it sets up an embedded PostgreSQL instance, loads demo data, and opens your browser at localhost:8080.

Demo login: demo@openconstructionerp.com / DemoPass1234!

Running on a VPS or remote server? The default binds to localhost only. To make the app reachable over the network, start it with:

openconstructionerp serve --host 0.0.0.0

For a production setup with systemd, see INSTALL_LINUX.md.

Path C: Docker

Download both Compose files and start the stack:

curl -fsSL https://raw.githubusercontent.com/datadrivenconstruction/OpenConstructionERP/main/docker-compose.quickstart.yml       -o docker-compose.yml
curl -fsSL https://raw.githubusercontent.com/datadrivenconstruction/OpenConstructionERP/main/docker-compose.quickstart.image.yml -o docker-compose.override.yml
echo "POSTGRES_PASSWORD=$(openssl rand -base64 24)" >  .env
echo "JWT_SECRET=$(openssl rand -hex 32)"           >> .env
docker compose pull app
docker compose up -d

On Windows, run the same steps in PowerShell. Use curl.exe, because curl in Windows PowerShell is a different command, and write .env with Set-Content -Encoding ascii, because a plain > writes UTF-16, which Compose cannot read:

curl.exe -fsSL https://raw.githubusercontent.com/datadrivenconstruction/OpenConstructionERP/main/docker-compose.quickstart.yml -o docker-compose.yml
curl.exe -fsSL https://raw.githubusercontent.com/datadrivenconstruction/OpenConstructionERP/main/docker-compose.quickstart.image.yml -o docker-compose.override.yml
$rng = [Security.Cryptography.RandomNumberGenerator]::Create()
$pw = New-Object byte[] 24; $rng.GetBytes($pw)
$jwt = New-Object byte[] 32; $rng.GetBytes($jwt)
Set-Content -Path .env -Encoding ascii -Value "POSTGRES_PASSWORD=$([Convert]::ToBase64String($pw))", "JWT_SECRET=$(-join ($jwt | ForEach-Object { $_.ToString('x2') }))"
docker compose pull app
docker compose up -d

The app runs at localhost:8080.

Demo login: demo@openconstructionerp.com / DemoPass1234!

Prerequisites

Path Requirement
Desktop None
pip Python 3.12+
Docker Docker with Compose v2
Source development Python 3.12+, Node.js 22+, PostgreSQL 16+

Watch

What's Next

  • Explore the demo project that ships with every fresh install.
  • Import your own cost data (GAEB XML, Excel, CSV) via the Import module.
  • Connect a CAD/BIM model through the 3D Viewer.

Removing the demo projects

The demo projects are yours to delete. Delete them one by one from the project list, or remove them all at once under Settings, Danger Zone, Remove sample data. A demo you removed stays removed: restarts and upgrades do not bring it back, and installing it again from the demo catalog is the one way to get it back.

Earlier versions could write demo records into your own projects on restart, such as a daily diary, bid packages, quality plans or a team roster. To find and remove them, an administrator opens Settings, Danger Zone, Find leftover demo records, looks through the list grouped by project and module, and confirms Remove. On a server, openconstructionerp demo-cleanup prints the same list without changing anything, and openconstructionerp demo-cleanup --apply removes it. Only records that carry the demo seed's mark or match exactly what the seed writes are listed, and a demo record somebody has worked on since is kept and shown with the reason.

For building from source, running tests, or contributing, see DEVELOPING.md.