Apps

Greeting the rest of the world.

Hello World

The simplest way to get started with a web app is using the Minimal API syntax of .NET 6.

1: Create project

In Visual Studio, create a new project using the 'ASP.NET Core Empty' project template - make sure you select .NET 6.

2: Add package

Add the Jeebs.Apps.WebApps package using NuGet.

3: Add config

The jeebs library uses a custom json file for configuration. Create jeebsconfig.json and add the following:

{
  "jeebs": {
    "app": {
      "name": "Jeebs App"
    },
    "logging": {
      "minimumLevel": "Information",
      "console": true
    }
  }
}

4: Edit Program.cs

Add the following to your Program.cs file:

5: Run app

Hit run and you should see something like this in your default browser (you may need to bypass the security warning first):

And something like this in the terminal output:

Congratulations, you've run your first Jeebs app!

Last updated