Code Monkey home page Code Monkey logo

javascriptdotnetdemo's Introduction

Javascript Dotnet Demo

This project is part of a presentation where I talked about .NET Javascript Services.

This presentation is aimed at (experienced) .NET developers who are not very familiar with modern Javascript and nodejs. Therefore this demo starts out as an introduction into modern javascript development, introducing nodejs 8, webpack, typescript and React 16, using yarn and vscode. Dotnet doesn't get added before the last step.

This presentation uses the latest of everything (as of sept 2017), including React 16 (Fiber), and implements universal rendering using the new renderToNodeStream and hydrate functions.


How am I going to explain it

This repository has four branches (demo1 to demo4) that build up from nothing to a working AspNet Core 2 site with Javascript Services:

  1. Configure webpack with typescript and create a basic React 16 page
  2. Configure webpack dev server with hot module reloading (HMR)
  3. Implement React 16 Universal rendering with HMR using nodejs and express
  4. Run the React component inside an AspNetCore page using JavascriptServices

Each branch is acompanied by a script file that describes all the steps that were taken to get there from the previous branch.

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.