Overview:
The react-aspnet-boilerplate is a starting point for building universal/isomorphic React applications with ASP.NET Core 1. It leverages existing front-end approaches and uses the JavaScriptViewEngine. The main goals of this project are to minimize the usage of .NET, provide isomorphic/universal rendering, and offer out-of-the-box login/register/manage functionality. This approach allows front-end developers to have complete control over building their app without any .NET dependencies or restrictions.
Features:
- Minimize .NET’s usage: .NET is only used for building REST endpoints (WebApi) and providing the initial state (pure POCO). There is no razor syntax used anywhere in this project.
- Isomorphic/Universal rendering: The client and server render using the same source files (javascript), allowing for consistent rendering on both ends.
- Out-of-the-box login/register/manage functionality: The project includes functionality for login, register, and managing user accounts. However, there is also an option to generate a clean template with no authentication/account management.
Installation:
To get started with this project, it is recommended to use the Yeoman generator. Follow these steps for installation:
- Generate your new project using the Yeoman generator.
- Alternatively, you can generate a clean template (without authentication/account management) using another generator.
- After generating your project, you can run the app.
Note: The project has several branches, including the master branch for starting a project with all the necessary features, and the empty-template branch for a minimal template without any additional functionality.
Summary:
The react-aspnet-boilerplate is an ideal starting point for front-end developers looking to build universal/isomorphic React applications with ASP.NET Core. It provides a minimalistic approach, minimizing the usage of .NET and allowing for complete control in building the app. The project includes out-of-the-box login/register/manage functionality and offers isomorphic/universal rendering using the same source files on both client and server. With the option to generate a clean template as well, this boilerplate is versatile and flexible for various React projects in .NET.