Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

h DATA VISUALS v LOGIK q USER RESEARCH w INSPECTION e TESTING t NAVIGATION z INTERAKTION r MODELLING a GAMIFICATION s VISIONt1 d SCREENS f ICONS g ANIMATION j 3D k ASSETS l PROTOTYPING ö FLOWS ä STYLEGUIDES y LOOK & FEELS x MARKUP c ARCHITEKTUR AgAHDAoDBAA

Slide 4

Slide 4 text

▪ ▪ ▪ ▪ ▪ ▪ ▪ ▪

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

„Hey! My name is Andre Gular. I am looking for a companion. Someone who is similar to me and for whom my hobbies are fine.“

Slide 8

Slide 8 text

http://localhost:4200/companions

Slide 9

Slide 9 text

http://localhost:4200/companions

Slide 10

Slide 10 text

http://localhost:4200/companion/express

Slide 11

Slide 11 text

http://localhost:4200/companion/express

Slide 12

Slide 12 text

http://localhost:4200/companion/express HTTP POST

Slide 13

Slide 13 text

http://localhost:3000/companions [ { "id":"express", "name":"Eliza Xopress", "markdownName":"*E*liza *X*o*press*", "avatar":"robotrabbit" }, { "id":"vanilla-node", "name":"Vanilla Nodesto", "markdownName":"*Vanilla Node*sto", "avatar":"deer" }, { "id":"adonisjs", "name":"Adones Johnson", "markdownName":"*Adonis J*ohn*s*on", "avatar":"otter"

Slide 14

Slide 14 text

http://localhost:3000/companions/express { "id":"express", "name":"Eliza Xopress", "markdownName":"*E*liza *X*o*press*", "avatar":"robotrabbit", "characteristics":[ "quite a fast runner", "little structure in life", "somewhat popular", "a tad messy" ], "favoriteColor":"#88E1F8" }

Slide 15

Slide 15 text

▪ ▪ ▪ tsc init ts-node ▪ ▪ ▪ ▪ .gitignore ▪ ▪ > npm install express --save > npm install @types/express --save-dev

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

▪ ▪ ▪ ▪ ▪ ▪ ▪ ➢

Slide 18

Slide 18 text

„I said hello to Eliza Xopress. We met a couple of times, but I think I can‘t handle her. She is kinda messy and has little structure in her life.“

Slide 19

Slide 19 text

„I‘ve met with Andre Gular. I've done my best to make us understand each other. However he couldn't handle my loose lifestyle.“

Slide 20

Slide 20 text

„I think I need to start over. I will update my profile details again. I need to find a good match.“

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

http://localhost:4200/user-profile/angular

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

▪ CompanionService getAll() getDetails (id: string)

Slide 25

Slide 25 text

▪ CompanionService UserService DialogService imports: […]

Slide 26

Slide 26 text

▪ ▪ ▪ ▪ ▪ ▪ ➢

Slide 27

Slide 27 text

http://localhost:4200/companions

Slide 28

Slide 28 text

http://localhost:4200/companions

Slide 29

Slide 29 text

„Oh my! What is this? A new companion has arrived. Looks interesting…“

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

„A progressive Node.js framework for building efficient, reliable and scalable server-side applications.“

Slide 32

Slide 32 text

▪ ▪ ▪ ▪ ▪

Slide 33

Slide 33 text

▪ ▪

Slide 34

Slide 34 text

▪ ▪

Slide 35

Slide 35 text

▪ ▪ ▪ ▪ ▪ ▪ ▪ ▪ ▪ ▪

Slide 36

Slide 36 text

Service ▪ @Component ▪ @Injectable ▪ @NgModule ▪ @Controller ▪ @Injectable ▪ @Module

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

▪ ▪ ▪ ▪ ▪

Slide 39

Slide 39 text

▪ ▪ ▪ > npm install –g @nestjs/cli > nest new > cd > nest start --watch http://localhost:3000 Hello World!

Slide 40

Slide 40 text

main.ts

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

http://localhost:3000/companions [ { "id":"express", "name":"Eliza Xopress", "markdownName":"*E*liza *X*o*press*", "avatar":"robotrabbit" }, { "id":"vanilla-node", "name":"Vanilla Nodesto", "markdownName":"*Vanilla Node*sto", "avatar":"deer" }, { "id":"adonisjs", "name":"Adones Johnson", "markdownName":"*Adonis J*ohn*s*on", "avatar":"otter" http://localhost:3000/companions/express { "id":"express", "name":"Eliza Xopress", "markdownName":"*E*liza *X*o*press*", "avatar":"robotrabbit", "characteristics":[ "quite a fast runner", "little structure in life", "somewhat popular", "a tad messy" ], "favoriteColor":"#88E1F8" } > curl -d ‘{ “myId”: …, “contactId”: … }’ http://localhost:3000/contact http://localhost:3000/companions/:id

Slide 43

Slide 43 text

▪ ▪ @Controller ▪ ▪ /companions ▪ /contact ▪ ▪ > nest g controller /

Slide 44

Slide 44 text

GET

Slide 45

Slide 45 text

POST

Slide 46

Slide 46 text

▪ ▪ @Header ▪ @HttpCode ▪ @Redirect ▪ ▪ @Get(‘favo*rites‘) ▪ ▪ ▪

Slide 47

Slide 47 text

▪ ▪ ▪ ▪ @Injectable ▪ ▪ > nest g service /

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

▪ ▪ ▪ ▪ ▪ @Module ▪ > nest g module

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

▪ ▪ ▪ ▪ ▪ ▪ ▪ @Global

Slide 54

Slide 54 text

http://localhost:4200/companion/nestjs

Slide 55

Slide 55 text

„I‘ve met with Andre Gular. He is a really nice guy. Our interests coincide to a large extent.“

Slide 56

Slide 56 text

„Meeting Nesta Jason was a real breeze. We have so much in common. However we still have some things to clear up.“

Slide 57

Slide 57 text

▪ ▪ ▪ ▪ ▪ ▪ @interfaces/ ▪ > nest start --watch --webpack

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

„We‘re talking on the same wavelength. Seems to good to be true. I am still unsure whether Nesta is herself and doesn‘t pretend to be someone else.“

Slide 60

Slide 60 text

„Dear Andre, trust me. I am real and I will show you my true self.“

Slide 61

Slide 61 text

▪ ▪ ▪ @nestjs/TypeORM ▪ @nestjs/mongoose ▪ ▪ > npm install --save @nestjs/mongoose mongoose

Slide 62

Slide 62 text

MongooseModule

Slide 63

Slide 63 text

„Nesta is awesome and a true match! I am so happy, I would even go so far to secure our friendship through some kind of contract.“

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

▪ ▪ ▪ ▪ ▪

Slide 66

Slide 66 text

TestingModule

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

„I am sure that we can deal well with our mistakes and that our friendship will last for a long time.“

Slide 69

Slide 69 text

„I want to thank Nesta for being such a good friend with something special.“

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

▪ ▪ SwaggerModule ▪ ▪ > npm install --save @nestjs/swagger swagger-ui-express http://localhost:3000/api

Slide 72

Slide 72 text

SwaggerModule

Slide 73

Slide 73 text

POST

Slide 74

Slide 74 text

GET

Slide 75

Slide 75 text

No content

Slide 76

Slide 76 text

„Andre, that wouldn't have been necessary. You are so attentive, making my wishes come through. Thank you so much!“

Slide 77

Slide 77 text

▪ ▪ ▪ ▪ ▪ ▪ ▪ ▪ ▪ ➢

Slide 78

Slide 78 text

No content

Slide 79

Slide 79 text

▪ ▪ ▪ ▪ ▪ ▪ ▪

Slide 80

Slide 80 text

„We belong together!“

Slide 81

Slide 81 text

No content

Slide 82

Slide 82 text

Thanks https://github.com/Centigrade/WebDC2019-AngularNestJS https://speakerdeck.com/mrcube42/angular-nestjs

Slide 83

Slide 83 text

No content