Coder Social home page Coder Social logo

nissan / reddi-dotnet-react-ts Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 591 KB

Redditech base outline of .NET Core 2.1 app with React and Typescript enabled

License: MIT License

JavaScript 2.40% HTML 5.50% CSS 1.52% TypeScript 31.80% C# 52.44% PowerShell 3.31% Shell 3.04%

reddi-dotnet-react-ts's Introduction

reddi-dotnet-react-ts

Redditech base outline of .NET Core 2.1 app with React, React Router and Typescript enabled. Projects included:

Based off earlier work in reddi-dotnet-react-app so the README is pretty close.

This template packs alot of modules in together, and tweaks the configuration so that they work well with each other, which doesn't happen automatically if you just yarn add each one. The packages included are:

  1. .NET Core 2.1 Web App (API/back-end)
  2. React (front-end)
  3. React Router (routing)
  4. TypeScript
  5. Jest (TDD and RDD (readme driven development))
  6. Enzyme (visual behavior testing)

Specifically I added the packages that I believe make better rapid prototyping and testing possible when discovering how an application should behave for the target user and there is a lot of volatility in the expected front-end behaviour as requirements change or adjust based on feedback received from demoing the actual application interactions.

Requirements

  1. ASP.Net Core 2.1 SDK installed
  2. Node.js and the create-react-app generator
  3. A code editor. For this project I used Visual Studio Code but any will do
  4. [Optional]fira code font which works nicely if you enable ligatures in VSCode

Quick setup of requirements

If you already have the above tooling, want to set the tooling up on your own, or don't want to learn more about how the pieces are put together, skip this seciton and go straight to Getting started You can quickly setup the requirements by running the

setup-prerequisites.sh

for Mac or

setup-prerequisites.ps1

on Windows in an Administrator PowerShell and that will download and install requirements for you, as well as create the skeleton application with the needed packages added.

There are a series of gist files that then show off some of the individually configured or additional files that are different from the default create-react-app files generated after running the setup-prerequisites script in this project, although most of these configuration changes were made for the original reddi-dotnet-react-app.

If you'd like to copy my own VSCode customized settings as well in your editor, install the Settings Sync plugin to VSCode and download my cloudSettings gist as your own using Settings Sync.

Getting started

Clone the repository, and from the SampleApp directory, run

dotnet run

from within the SampleApp folder. (This will automatically run dotnet restore to restore missing packages if required)

To run Jest tests, run

yarn test

from within the ClientApp folder. Note on Mac OSX watchman was added in setup-prerequisites.sh to prevent an error specific to create-react-app generated projects occurring when yarn test is run. Reference to this issue can be found here

reddi-dotnet-react-ts's People

Contributors

nissan avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.