GhaylStackDocumentationv1.0.2
العربيةWebsite
Getting started

Getting started

Run GhaylStack locally

Start a source checkout or generated project and verify both web workspaces against the API.

Watch the steps or try it now

Watch the one-minute setup explanation, with copyable commands and a complete transcript. Or open the interactive demo without installing or signing in: tickets, approvals, a catalog and workspace branding with sample data. The demo runs in your browser and saves changes locally; it has no live API or database. The video duration describes the explanation, while first installation time depends on your computer and connection.

Windows: run in one command

In v1.0.2, Windows users can run run-local.cmd from CMD or .\run-local.ps1 in PowerShell. The launcher checks .NET 11, npm and Docker Desktop, repairs common Docker PATH problems only for the current session, installs locked web dependencies when necessary and starts Aspire.

powershell
.\run-local.ps1 -CheckOnly
.\run-local.ps1 -TrustDevCertificate

The default web URLs are http://localhost:5173 (Admin) and http://localhost:5174 (Dashboard). Aspire runs at https://localhost:15888; obtain the API's actual HTTPS URL from Aspire. -WebHttps optionally uses HTTPS for Vite. Development uploads to RustFS over signed HTTP can be blocked as mixed content; use the production Caddy HTTPS proxy for complete TLS. See Windows troubleshooting.

For a verified GitHub release asset before NuGet.org indexing is complete, download the signed-off .nupkg packages from the release page and install them from a trusted local directory. This avoids assuming the NuGet gallery has already listed the same version.

Choose the correct project paths

Complete prerequisites and start Docker. The two paths below lead to the same local application shape, but their solution and host names differ.

Starting point Solution AppHost
GhaylStack source checkout src/GhaylStack.slnx src/Host/GhaylStack.AppHost
Project generated as MyCompany src/MyCompany.slnx src/Host/MyCompany.AppHost

A source clone retains GhaylStack names. Use project generation when you want your own application names. All following commands run from the corresponding project root.

Run a source checkout

sh
git clone https://github.com/GhaylStack/ghaylstack.git
cd ghaylstack
git checkout v1.0.2
npm ci --prefix clients/admin
npm ci --prefix clients/dashboard
dotnet build src/GhaylStack.slnx -c Release
pwsh src/Host/GhaylStack.Api/bin/Release/net11.0/playwright.ps1 install chromium
dotnet run --project src/Host/GhaylStack.AppHost --launch-profile https

The tag selects the documented release rather than whatever the default branch later contains. The browser installation is for PDF printing; consult PDF rendering for Linux dependencies and runtime identity requirements.

Run a generated application

For a new default application:

sh
dotnet tool install --global GhaylStack.CLI --version 1.0.2
g new MyCompany
cd MyCompany
dotnet build src/MyCompany.slnx -c Release
pwsh src/Host/MyCompany.Api/bin/Release/net11.0/playwright.ps1 install chromium
dotnet run --project src/Host/MyCompany.AppHost --launch-profile https

The CLI attempts npm ci for both web apps. If it reported an npm warning, or you selected --skip-install, run the two npm commands from the source example before starting. Applications generated with --no-aspire need separately configured services and an explicit migration step; this AppHost recipe does not apply to them.

Follow startup in Aspire

Open the Aspire dashboard URL printed in the terminal. AppHost builds or starts PostgreSQL, Valkey and RustFS, initializes the storage bucket, runs the migrator and then provisions development demo data. The API waits for its required initialization jobs. Both React apps wait for the API.

A completed one-shot migrator is expected to stop successfully; it is not a service that must remain running. If the API stays waiting, open the preceding job's logs. See troubleshooting before clearing containers or volumes.

Verify the first session

Open the endpoints shown by Aspire. Admin defaults to http://localhost:5173; Dashboard defaults to http://localhost:5174. Use demo accounts to enter the root console and a demonstration tenant.

Check API /health/live and /health/ready at the displayed API origin. The first confirms the process responds; the second returns 200 only when registered checks are healthy. Open Acme and Globex in separate browser profiles, verify each tenant name, switch Arabic/English and load a ticket or catalog page. A page shell alone does not establish API connectivity.

Stop AppHost with Ctrl+C. Data volumes persist, and the default container lifetime is persistent; inspect Docker if you also need to stop remaining containers. Use session lifetime explicitly for disposable local runs.

Sources and next steps

Startup graph, generated README and health endpoints. Continue to configuration or add a feature.

View MarkdownBack to top

Search documentation

Use ↑ ↓ to move, Enter to open and Esc to close.