All Projects → based-ghost → aspnet-core-react-redux-playground-template

based-ghost / aspnet-core-react-redux-playground-template

Licence: MIT license
SPA template built with ASP.NET Core 6.0 + React + Redux + TypeScript + Hot Module Replacement (HMR)

Programming Languages

typescript
32286 projects
C#
18002 projects
SCSS
7915 projects
HTML
75241 projects

Projects that are alternatives of or similar to aspnet-core-react-redux-playground-template

Dotnetify
Simple, lightweight, yet powerful way to build real-time web apps.
Stars: ✭ 927 (+1088.46%)
Mutual labels:  aspnetcore, signalr
Aspnetcoreangularsignalr
SignalR ASP.NET Core Angular
Stars: ✭ 163 (+108.97%)
Mutual labels:  aspnetcore, signalr
Server
The core infrastructure backend (API, database, Docker, etc).
Stars: ✭ 8,797 (+11178.21%)
Mutual labels:  aspnetcore, signalr
ChatService
ChatService (SignalR).
Stars: ✭ 26 (-66.67%)
Mutual labels:  aspnetcore, signalr
ArchitectNow.ApiStarter
Sample ASP.NET Core 2 API Setup used by ArchitectNow for corresponding workshop presentations
Stars: ✭ 35 (-55.13%)
Mutual labels:  aspnetcore, nswag
Aspnetcore Angular Signalr Typescript
An example of an Angular application using ASP.NET Core and SignalR
Stars: ✭ 288 (+269.23%)
Mutual labels:  aspnetcore, signalr
Aspnetcore Angular Ngrx
🚀 An ASP.NET Core WebAPI Demo with an Angular Client using Ngrx store and effects and Signalr
Stars: ✭ 141 (+80.77%)
Mutual labels:  aspnetcore, signalr
Signalrsimplechat
.NET 5 - ASP.NET Core 5 SignalR Simple Chat
Stars: ✭ 95 (+21.79%)
Mutual labels:  aspnetcore, signalr
pokeR
Planning poker with SignalR
Stars: ✭ 37 (-52.56%)
Mutual labels:  aspnetcore, signalr
Gatsby Admin Template
Free admin dashboard template based on Gatsby with @paljs/ui component package
Stars: ✭ 124 (+58.97%)
Mutual labels:  styled-components, dashboard-templates
SignalR-Core-SqlTableDependency
Shows how the new SignalR Core works with hubs and sockets, also how it can integrate with SqlTableDependency API.
Stars: ✭ 36 (-53.85%)
Mutual labels:  aspnetcore, signalr
AspNetCore.Client
On Build client generator for asp.net core projects
Stars: ✭ 14 (-82.05%)
Mutual labels:  aspnetcore, signalr
react-redux-aspnet-core-webapi
No description or website provided.
Stars: ✭ 34 (-56.41%)
Mutual labels:  aspnetcore, signalr
Nswag
The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
Stars: ✭ 4,825 (+6085.9%)
Mutual labels:  aspnetcore, nswag
dotNetify-react-native-demo
DotNetify + React Native + .NET Core demo
Stars: ✭ 43 (-44.87%)
Mutual labels:  aspnetcore, signalr
Aspnetcoreangularsignalrsecurity
Security with ASP.NET Core, SignalR and Angular
Stars: ✭ 171 (+119.23%)
Mutual labels:  aspnetcore, signalr
PugetSound
PugetSound allows you and your group to enjoy music together using Spotify.
Stars: ✭ 52 (-33.33%)
Mutual labels:  aspnetcore, signalr
react-functional-select
Micro-sized & micro-optimized select component for React.js
Stars: ✭ 165 (+111.54%)
Mutual labels:  styled-components, react-functional-select
BlazorAuthenticationSample
A sample showing some of the ASP.NET Core Blazor authentication features (also some testing...) 🚀
Stars: ✭ 78 (+0%)
Mutual labels:  aspnetcore
Madara
✍️ A way for people to manage their tasks.
Stars: ✭ 17 (-78.21%)
Mutual labels:  styled-components

ASP.NET Core 6.0 + React + Redux + TypeScript + Hot Module Replacement (HMR)

This template is a SPA application built using ASP.NET Core 6.0 as the REST API server and React/Redux/TypeScript as the web client (Bulma + SASS + styled-components for UI styling). You can find a similar version using Vue + Vuex (and associated libraries) here: aspnet-core-vue-vuex-playground-template

demo

General Overview

This template is vaguley based on the original React + Redux .NET Core SPA template that was offered around the time of .NET Core 2.0 release (the existing template is a much more simplified version of what was offered in the past and the structure is quite different as well). Using that as a base, this template greatly extends the functionality provided and also uses the latest versions of all referenced libraries/packages. Keep in mind that I use this project (or others like it) as a testing ground for varying libraries/packages and it is not meant to act as a stand-alone final solution - it is more of POC. For example, the login & logout processes are stubbed to simulate the actual process (no real authentication is happening, however, it is something I plan to add to this project in the near future). I plan on keeping this up to date, and the listed technology stack may be subject to change.

Note: All components are written using FunctionComponents & React Hooks. Legacy class components are not used.

Technology Stack Overview

  • Server
    • ASP.NET Core 6.0
    • SignalR
    • HealthChecks + AspNetCore.HealthChecks.UI package - this provides a nicely formatted UI for viewing the results of the HealthCheck modules in use and is accessed on /health-ui (also, provide an option for viewing the raw JSON data that the UI package prettifies for you at /healthchecks-json). Access this view in the application via the floating settings cog on right screen by clicking the "Health Checks" link.
    • API Documentation using Swagger UI - using package NSwag.AspNetCore to prettify the specification output and display at /swagger/* & NSwag.MSBuild to handle automatic updates - so that when the project builds, the NSwag CLI will run and generate an updated API specification. Access this view in the application via the floating settings cog on right screen by clicking the "Swagger API" link.
    • Brotli/Gzip response compression (production build)
  • Client
    • React
    • Redux
    • TypeScript
    • Webpack for bundling of application assets and HMR (Hot Module Replacement)
    • Bulma CSS + SASS + Font Awesome 5 (using fontawesome-svg-core)
    • styled-components - CSS-in-JS via template literals - Examples in this project: Checkbox.tsx, Spinner.tsx, Authenticator.tsx, Settings.tsx, and Footer.tsx are written using styled-components.
    • react-functional-select - A micro-sized & micro-optimized select component for ReactJS. Inspired by react-select and built for ultimate performance - leverages react-window to virtualize long options data and styled-components to handle styling via CSS-in-JS. Note: I am the author of this package.
    • Axios for REST endpoint requests
    • react-toastify - a highly configurable toast notification library - comes hooked up to display login error & SignalR hub push notifications examples.
    • react-router/react-router-dom - route transitions handled using react-transition-group
    • Custom, reusable Dropdown & Checkbox components that provide full functionality w/ state management (without a JQuery dependency).
    • Two different loader components (spinner & authentication animation w/ callback for success/fail)

Setup

  • Node.js version >= 14
  • .NET 6.0 SDK
  • Clone the repository and run npm install from the root of the ClientApp directory to properly install all node packages/dependencies.
  • Opening the solution in VisualStudio should automatically trigger nuget package and other dependencies to be restored (assuming latest version of VisualStudio and installation of .NET Core version mentioned aboved). If issues are encountered, attempting to refresh the dependencies or executing a rebuild solution should resolve them.
  • A solution.sln file is added to act as an entry point to open the application in Visual Studio. Visual Studio 2022 and up.
  • GhostUI/GhostUI.csproj acts as the entry point to open the application in Visual Studio Code.
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].