Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martijnboland/LeanAspNetCore-React
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.
https://github.com/martijnboland/LeanAspNetCore-React
Last synced: about 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/martijnboland/LeanAspNetCore-React
- Owner: martijnboland
- License: mit
- Created: 2018-06-19T10:34:54.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-04-17T11:27:19.000Z (over 1 year ago)
- Last Synced: 2024-06-28T10:34:02.436Z (3 months ago)
- Language: TypeScript
- Homepage: https://blogs.taiga.nl/martijn/2021/02/24/integrating-vite-with-asp-net-core-a-winning-combination/
- Size: 354 KB
- Stars: 73
- Watchers: 6
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.