Getting started

Run OmniCore locally

Start the database, the identity provider, the maker site and the portal on your own machine.

This page starts every part of OmniCore on your own machine, from a clone of the repository. Commands are for PowerShell, run from the repository's root unless they say otherwise.

Prerequisites

  • The .NET 10 SDK (or later).
  • Node.js 22 (20 or later), for the maker site and the portal.
  • A trusted development certificate for HTTPS: dotnet dev-certs https --trust.

1. The database

powershell
dotnet run --project OmniCore/OmniCore.Database --launch-profile OmniCore.Database

The database listens on http://localhost:5080. The Development profile:

  • seeds a sample schema (Contact, Customer, Staff) when the schema is empty;
  • turns on authentication with a built-in development signing key, and makes the subject dev-admin a System Admin;
  • turns on POST /api/dev/token, which mints test tokens.

Check that it's working:

powershell
$token = (Invoke-RestMethod -Method Post http://localhost:5080/api/dev/token `
  -ContentType application/json -Body '{"subject":"dev-admin"}').access_token
Invoke-RestMethod http://localhost:5080/api/me -Headers @{ Authorization = "Bearer $token" }

/api/me answers with who you are, whether you're a System Admin, and your permissions on each perspective.

Development tokens are for local work only. Outside Development the server refuses to start until it has an identity provider; see Authentication and identity.

2. The identity provider (optional)

Development sign-in is enough to try everything. To sign in with a username and password, as in production, start OmniCore.Identity too:

powershell
dotnet run --project OmniCore/OmniCore.Identity --launch-profile OmniCore.Identity

It listens on http://localhost:5090. In Development, the first start creates the directory administrator admin@omnicore.local with the development password from appsettings.Development.json. Connecting the database to it is described in Authentication and identity.

3. The web part SDK

The maker site and the portal run dashboards with the web part SDK, whose build output isn't committed. Build it once:

powershell
cd webparts
npm install
npm run build --workspace sdk

4. The maker site

powershell
cd maker
npm install
npm run build
cd ..
dotnet run --project OmniCore/OmniCore.Portal --launch-profile OmniCore.Maker

Open https://localhost:5001. With a database that issues development tokens, the sign-in screen offers Development sign-in as any subject: sign in as dev-admin to have full control.

5. The portal

powershell
cd portal
npm install
npm run build
cd ..
dotnet run --project OmniCore/OmniCore.Portal --launch-profile OmniCore.Portal

Open https://localhost:5000 and sign in the same way.

While you work on the front ends

npm run dev in maker/ or portal/ serves the app with hot reload (on ports 5173 and 5174) and forwards sign-in, /session, /proxy and /webparts to the host on 5001 or 5000, which must be running.

Where things are kept

ServerData folderContents
DatabaseOmniCore/OmniCore.Database/dataThe record log, schema, security, indexes, views, workflows, dashboards, resources and plugins.
Identityidentity-data (under the project)The directory and the token-signing key.

Both are ignored by git. Delete a folder to start that server afresh.

Next