Slide 1

Slide 1 text

Modern Enterprise App Dev With Azure & Typescript

Slide 2

Slide 2 text

@JecelynYeen GDE - Web technologies, Angular Software Architect

Slide 3

Slide 3 text

Typescript in General Backend - Nodejs & Nestjs Frontend - Angular Infrastructure - Azure Live Demo Maybe?

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

Back in the day, when I was .NET Developer...

Slide 6

Slide 6 text

This is how I see JavaScript... - JQuery, for cosmetic purpose and AJAX! - Dynamic, you can do anything - Messy, for toy project only - No intellisense - For client only - Hipster, why split to front-end and back-end? - Why no GUI, why command line only? - Why no out-of-the box template? - How do I host it? Where is my IIS?

Slide 7

Slide 7 text

The Game Changer

Slide 8

Slide 8 text

Typescript - By Microsoft - Provide types, no more magic - Intellisense, yay! - Great tooling supports - C# like coding experiences

Slide 9

Slide 9 text

Foundation for Angular & Nestjs

Slide 10

Slide 10 text

Backend

Slide 11

Slide 11 text

Story of Building LEGO house

Slide 12

Slide 12 text

Simple, Intuitive, Easy to Start

Slide 13

Slide 13 text

Structure, Details, Layout

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

Design & Plan Modular Ecosystem

Slide 16

Slide 16 text

JavaScript runtime that build on top of Google Chrome’s V8 engine

Slide 17

Slide 17 text

Nodejs is simple - Setup Time: 1 minute - Code: 2 lines

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

Why Nodejs?

Slide 21

Slide 21 text

Nodejs is simple. Wait, what is the definition of simple?

Slide 22

Slide 22 text

Nodejs is simple up to a certain point When build medium - large applications, the definition of simple change.

Slide 23

Slide 23 text

Application Issues (Medium to Large) - Nodejs Lack of Common Architecture Fragile Execution Problematic Growth

Slide 24

Slide 24 text

We need... Structure Robustness Scalability

Slide 25

Slide 25 text

“We build our computer (systems) the way we build our cities. Over time, without a plan, on top of ruins.” - Ellen Ullman

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

Why Nestjs? Application Structure Dependency Injection Middleware Structure Platform Agnostic

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

What’s (the good stuffs) in the project?

Slide 31

Slide 31 text

Core Concepts

Slide 32

Slide 32 text

Find out more about Nestjs: https://speakerdeck.com/chybie/progressive- nest

Slide 33

Slide 33 text

Frontend

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

Challenges of building Enterprise Software

Slide 37

Slide 37 text

Reliability & Stability

Slide 38

Slide 38 text

Reliability & Stability - Google internally have 400+ applications using Angular - Pre-release tests for free - Before release new version of Angular, Google will first test on their applications make sure it works - Angular is open source (link), all codes & issues reported are transparent - Predictable versioning & releases (link) - Semantic release: major.minor.patch - A major release every 6 months - 1-3 minor releases for each major release - A patch release almost every week - Built-in protection for common web vulnerabilities (link) - Update guide & CLI command for update Angular application

Slide 39

Slide 39 text

S Structure

Slide 40

Slide 40 text

Structure - Angular CLI to create projects, generate different blueprints(components, services) - Provide standard project skeleton - Workspace concept(link) - Test setup - unit test, end-end - Dev server & build command ready - Angular styleguide (link) and built-in linting - Nx from nrwl.io - an open source toolkit for enterprise Angular applications - Dependency injection - Out of the box solution - routing, http client, forms, polyfills, css preprocessor

Slide 41

Slide 41 text

S Robustness

Slide 42

Slide 42 text

Robustness - Typescript - Static typing, no more fragile execution - Linting - eliminate possible errors before commits - Angular Language Service (vscode extensions) - report errors during editing

Slide 43

Slide 43 text

S Scalability

Slide 44

Slide 44 text

Scalability: Team - Hiring & training - How fast to get a junior (fresh) productive? - How fast to get a programmer to be productive? - Full stack development - Can backend developers leverage their skills in frontend? - Resources available - videos, stackoverflow, community

Slide 45

Slide 45 text

Scalability: Application - Resources available - open source libraries - Enterprise grade (paid): Telerik, DevExtreme - Components & Design systems: PrimeNg, Material UI, Nebula, Clarity, ngx-bootstrap, ngx-admin - State management - NgRx, NgXs, Akita, MobX - Plugins - Firebase, Auth0, Angular CDK - Learn once, use everywhere - Ionic (Hybrid) - NativeScript (Native) - NestJs (Backend) - Lazy loading built in - Built-in Optimization

Slide 46

Slide 46 text

“It’s never on how difficult is to write bad code, it’s on how easy is to write good code.”

Slide 47

Slide 47 text

They choose Angular. https://www.madewithangular.com/categories/angular

Slide 48

Slide 48 text

Infrastructure - Azure

Slide 49

Slide 49 text

Deployment - Angular: 3 ways - Nodejs & Nestjs

Slide 50

Slide 50 text

Live Demo?

Slide 51

Slide 51 text

Thank You!