Skip to content

Run from Source

alsi-lawr edited this page Jul 21, 2026 · 2 revisions

Run from source

Source execution is intended for development and local evaluation.

Toolchain

  • .NET SDK 10.0.301, pinned by global.json.
  • Node.js and npm for the Tailwind CSS build.

Restore, build, and run

npm ci --prefix src/BlokeBot
dotnet restore BlokeBot.slnx --disable-parallel
dotnet build BlokeBot.slnx --no-restore --disable-parallel
dotnet run --project src/BlokeBot/BlokeBot.csproj --no-build -- serve

The application build also restores the locked frontend packages and rebuilds CSS. For a live CSS rebuild:

npm run css:watch --prefix src/BlokeBot

Production-style listener

ASPNETCORE_ENVIRONMENT=Production \
  dotnet run --project src/BlokeBot/BlokeBot.csproj -- \
  serve --host 127.0.0.1 --port 8080

Do not put credentials into tracked development settings. Prefer environment variables or an external operator JSON file. Native runs use platform state defaults unless --data-dir or explicit paths override them; continue with Configuration.

Clone this wiki locally