An open API service indexing awesome lists of open source software.

https://github.com/netlah/spaservices-hosting

The ASP.NET Core hosting the single-page application
https://github.com/netlah/spaservices-hosting

asp-net-core aspnetcore configurable dotnet host hosting netcore single-page-application spa web-ssh webssh

Last synced: 6 months ago
JSON representation

The ASP.NET Core hosting the single-page application

Awesome Lists containing this project

README

          

# NetLah.Extensions.SpaServices.Hosting - .NET Library

[NetLah.Extensions.SpaServices.Hosting](https://www.nuget.org/packages/NetLah.Extensions.SpaServices.Hosting/) is a library support setting ASP.NET Core SpaServices hosting from configuration.

## Nuget package

[![NuGet](https://img.shields.io/nuget/v/NetLah.Extensions.SpaServices.Hosting.svg?style=flat-square&label=nuget&colorB=00b200)](https://www.nuget.org/packages/NetLah.Extensions.SpaServices.Hosting/)

## Build Status

[![ASP.NET Core](https://github.com/NetLah/spaservices-hosting/actions/workflows/aspnet-core.yml/badge.svg)](https://github.com/NetLah/spaservices-hosting/actions/workflows/aspnet-core.yml)

## Getting started

### 1. Add/Update PackageReference to web .csproj

```

```

### 2. Use SPA Hosting

```csharp
builder.AddSpaApp();
...
var app = builder.Build();

app.UseSpaApp(action: app => app.UseSerilogRequestLoggingLevel());

app.Run();
```

### Sample Docker Image

https://hub.docker.com/r/netlah/spa-host-sample