Skip to content

martijnboland/LeanAspNetCore-React

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

LeanAspNetCore-React

A 'lean' ASP.NET 6.0 app that uses Razor Pages for server pages and React for some of the client functionality. The main goal of this example is to show how ASP.NET Core and modern client-side development can be combined in a simple, understandable way.

Originally it leveraged webpack and Microsoft.AspNetCore.SpaServices. Currently, it uses Vite for client-side builds and Microsoft.AspNetCore.SpaServices.Extensions for integration.

Prerequisites

.NET 6.0 (or higher) SDK Node.js 12.0.0 or higher

Getting started

git clone https://github.com/martijnboland/LeanAspNetCore-React.git
cd LeanAspNetCore-React
dotnet run

Browse to https://localhost:5001 to see the working app.

At the first run, it takes a little while before all dependencies are resolved. Just have a little patience. After the first run, things are much faster.

About

Lean ASP.NET 6.0 app that uses Razor Pages for server pages and React for part of the client application. Client-side build is done with Vite.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published