StellarAdmin is still in development. We'd love for you to try it out and get your feedback, but please be advised that you may run into bugs. Changes to public APIs may also occur.

Installing StellarAdmin in your ASP.NET Core application


StellarAdmin requires ASP.NET Core 3.1 or 5.0

Install packages

To add StellarAdmin to your ASP.NET Core application, install the StellarAdmin NuGet package. If you intend to use StellarAdmin with Entity Framework, you can also install the StellarAdmin.EntityFrameworkCore package.

dotnet add package StellarAdmin
dotnet add package StellarAdmin.EntityFrameworkCore

Register StellarAdmin services

Once installed, you must configure StellarAdmin in the ConfigureServices method of your Startup class by calling the AddStellarAdmin extension method. StellarAdmin depends on some MVC services, so be sure to register those by calling the AddMvc extension method.

public void ConfigureServices(IServiceCollection services)
    // some code omitted for brevity

    // StellarAdmin requires various MVC services

    // Register the StellarAdmin services, resources and actions

Register endpoints

To register the StellarAdmin endpoints, add a call to MapStellarAdmin() in the Configure method of your Startup class.

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
    // ...

    app.UseEndpoints(endpoints =>
        // other endpoint registrations

        // Register the routes for the StellarAdmin UI and API

Verify configuration

You can verify the configuration running your application and going to the /StellarAdmin route. This should display the StellerAdmin UI as in the screenshot below.


Next, you can define your resources.