This repository provides a quick example to help developers get started with ASP.NET Core and Inertia.js using React for views. It demonstrates the integration of these technologies, allowing for seamless server-side rendering and a modern single-page application experience. Whether you're new to ASP.NET Core or looking to enhance your React applications, this project serves as a solid foundation to build upon.
- Basic setup of ASP.NET Core with Inertia.js
- React components for dynamic views
- Simple routing and state management
- Easy to follow structure for quick onboarding
Feel free to clone this repository and start building your own applications!
You can modify any part to better fit your style or specific project details! Quick starting guide for a .NET 8 ASPNET CORE Web MVC project that uses react in views through InertiaJS.
To get started with this project, you will need the following :
-
Restore the project dependencies using
dotnet restore
in the solution path -
Once that is done, you should navigate into the ClientApp folder and install npm packages using
npm install
.
-
Run ASP.NET CORE project, by using following command:
dotnet watch
in project directory -
Run ReactJS project with the following command:
npm run dev
in the ClientApp directory.