Skip to content

Running Your App

You’ve created your BlazorSaas app—now let’s get it running. The setup-env Nuke target configures everything you need, from database to API keys.

Prerequisites

  • Nuke.build
  • Docker (for local dev with containers)
  • Accounts with Stripe, Postmark, and a local PostgreSQL instance

Install Nuke.build

Install Nuke as a global tool:

Terminal window
dotnet tool install Nuke.GlobalTool --global

Run the Setup

  1. From your app folder (e.g., MyApplication), run:

    Terminal window
    dotnet nuke setup-env

    This triggers the setup process, generating a .env file and updating app settings.

  2. Provide Settings: The script prompts you for:

    • Database: Host (default: localhost), port (default: 5432), name, username, password.
    • Redis: Connection string (default: localhost:6379).
    • Admin Account: Email (default: [email protected]), password.
    • Stripe: API key, webhook signature (get these from https://stripe.com).
    • Postmark: API key, from email (get the key from https://postmarkapp.com).
    • Addresses: API and web addresses (e.g., api.myapplication.com, myapplication.com).
  3. Launch It: Once configured, run:

    Terminal window
    docker-compose up

Your app should be live at https://localhost:7000 and your API should be live at https://localhost:7001

Manual setup

Look for {blazor_saas:XXXXX} tags

run nuke schema, nuke code and nuke initialmigration