All Projects → pauldotknopf → React Aspnet Boilerplate

pauldotknopf / React Aspnet Boilerplate

Licence: mit
A starting point for building isomorphic React applications with ASP.NET Core, leveraging existing techniques.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Aspnet Boilerplate

PersianDataAnnotations
PersianDataAnnotations is ASP.NET Core MVC & ASP.NET MVC Custom Localization DataAnnotations (Localized MVC Errors) for Persian(Farsi) language - فارسی سازی خطاهای اعتبارسنجی توکار ام.وی.سی. و کور.ام.وی.سی. برای نمایش اعتبار سنجی سمت کلاینت
Stars: ✭ 38 (-86.67%)
Mutual labels:  mvc, asp-net-core, asp-net, asp-net-mvc
X.pagedlist
Library for easily paging through any IEnumerable/IQueryable in ASP.NET/ASP.NET Core
Stars: ✭ 625 (+119.3%)
Mutual labels:  asp-net-core, asp-net-mvc, mvc
DNZ.SEOChecker
SEO Checker and Recommander Plugin (like wordpress Yoast) for ASP.NET Core.
Stars: ✭ 18 (-93.68%)
Mutual labels:  asp-net-core, asp-net, asp-net-mvc
Recaptcha Net
reCAPTCHA for .NET library lets you easily use Google's reCAPTCHA in an ASP.NET Web Forms / MVC / ASP.NET Core application.
Stars: ✭ 116 (-59.3%)
Mutual labels:  asp-net-core, asp-net, asp-net-mvc
Cake-Shop
A sample Cake Shop Website built with ASP.NET Core (Multi-Page Application)
Stars: ✭ 44 (-84.56%)
Mutual labels:  asp-net-core, asp-net, asp-net-mvc
adminlte-aspnetcore2-version
Asp.Net Example version of famous and beautiful AdminLTE control panel themes and template.
Stars: ✭ 64 (-77.54%)
Mutual labels:  mvc, asp-net-core, asp-net
Csla
A home for your business logic in any .NET application.
Stars: ✭ 865 (+203.51%)
Mutual labels:  asp-net-core, asp-net, asp-net-mvc
MvcSimplePager
Simple,lightweight,easy to expand pager for asp.net mvc and asp.net core,针对asp.net mvc 和 asp.net core 设计的通用、扩展性良好的轻量级分页扩展
Stars: ✭ 13 (-95.44%)
Mutual labels:  mvc, asp-net-core, asp-net-mvc
AspNetCore-Dynamic-Permission
Dynamic Permission Samples in ASP.NET Core and ASP.NET MVC 5.
Stars: ✭ 19 (-93.33%)
Mutual labels:  asp-net-core, asp-net, asp-net-mvc
Awesome-Nuget-Packages
📦 A collection of awesome and top .NET packages sorted by most popular needs.
Stars: ✭ 87 (-69.47%)
Mutual labels:  asp-net-core, asp-net, asp-net-mvc
RazorHtmlMinifier.Mvc5
↘️ Trivial compile-time Razor HTML Minifier for ASP.NET MVC 5.
Stars: ✭ 31 (-89.12%)
Mutual labels:  asp-net, asp-net-mvc
Wilson
ERP / CRM system for small to medium construction companies.
Stars: ✭ 84 (-70.53%)
Mutual labels:  mvc, asp-net-mvc
Asp-net-Core-Project-with-Admin-Template-Setup
AdminLTE Template Setup with Asp.net Core MVC 2.1 Project
Stars: ✭ 50 (-82.46%)
Mutual labels:  asp-net-core, asp-net
DNTCommon.Web.Core
DNTCommon.Web.Core provides common scenarios' solutions for ASP.NET Core 3.x applications.
Stars: ✭ 117 (-58.95%)
Mutual labels:  mvc, asp-net-mvc
steamstatus
A quick and dirty POC website to view the status of Steam CM servers. Precursor to steamstat.us
Stars: ✭ 67 (-76.49%)
Mutual labels:  asp-net, asp-net-mvc
StormReport
🌀 Library - Create your reports using only annotations
Stars: ✭ 17 (-94.04%)
Mutual labels:  asp-net-core, asp-net
Dynamic-User-Defined-Dashboards-Asp-Net-Core
Complete Solution for Dynamically Created User-Defined Dashboards using Asp.Net Core
Stars: ✭ 32 (-88.77%)
Mutual labels:  asp-net-core, asp-net
serilog-enrichers-clientinfo
Enrich logs with client IP and UserAgent.
Stars: ✭ 42 (-85.26%)
Mutual labels:  asp-net-core, asp-net-mvc
vctr
vctr is a self hosted short link management tool.
Stars: ✭ 14 (-95.09%)
Mutual labels:  asp-net-core, asp-net
DNZ.MvcComponents
A set of useful UI-Components (HtmlHelper) for ASP.NET Core MVC based-on Popular JavaScript Plugins (Experimental project).
Stars: ✭ 25 (-91.23%)
Mutual labels:  asp-net-core, asp-net-mvc

react-aspnet-boilerplate

A starting point for building universal/isomorphic React applications with ASP.NET Core 1, leveraging existing front-end approaches. Uses the JavaScriptViewEngine.

Goals

  1. Minimize .NET's usage - It's only usage should be for building REST endpoints (WebApi) and providing the initial state (pure POCO). No razor syntax anywhere.
  2. Isomorphic/universal rendering
  3. Client and server should render using the same source files (javascript)
  4. Out-of-the-box login/register/manage functionality - Use the branch empty-template if you wish to have a vanilla React application.

This approach is great for front-end developers because it gives them complete control to build their app as they like. No .NET crutches (bundling/razor). No opinions. No gotchas. Just another typical React client-side application, but with the initial state provided by ASP.NET for each URL.

Getting started

The best way to get started with this project is to use the Yeoman generator.

npm install -g yo
npm install -g generator-react-aspnet-boilerplate

Then generate your new project:

yo react-aspnet-boilerplate

You can also generate a clean template (no authentication/account management) with another generator:

yo react-aspnet-boilerplate:empty-template

After you have your new project generated, let's run that app!

cd src/ReactBoilerplate
npm install
gulp
dotnet restore
# The following two lines are only for the 'master' branch, which has a database backend (user management).
# They are not needed when using 'empty-template'.
dotnet ef migrations add initial
dotnet ef database update
dotnet run

Some of the branches in this repo that are maintained:

  • master - This is the main branch. It has all the stuff required to get you started, including membership, external logins (OAuth) and account management. This is the default branch used with the Yeoman generator.
  • empty-template - This branch for people that want an empty template with the absolute minimum recommend boilerplate for any ASP.NET React application.

The interesting parts

  • client.js and server.js - The entry point for the client-side/server-side applications.
  • Html.js and App.js - These files essentially represent the "React" version of MVC Razor's "_Layout.cshtml".
  • Controllers - The endpoints for a each initial GET request, and each client-side network request.

What is next?

I will be adding features to this project as time goes on to help me get started with new React projects in .NET. So, expect some more things. I am also open to contributions or recommendations.

I took a lot of things from react-redux-universal-hot-example, but not everything. As time goes on, expect to see more of the same patterns/technologies/techniques copied over.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].