Skip to content

Latest commit

 

History

History
89 lines (67 loc) · 1.64 KB

README.md

File metadata and controls

89 lines (67 loc) · 1.64 KB

Welcome to "The Hall Of Fame" (<= 90min)

Presentation storyboard for a simple highscore application using the API first (top-down) approach.

Intro and promo

The API (<= 5min)

git clone git@github.com:sius/hall-of-fame.git
cd hall-of-fame

Install Some Npm Tools Globally (<= 5min)

npm i -g swagger-nodegen-cli@2.4.4
npm i -g @angular/cli

Highscore Server - Part 1 (<= 30min)

Generate nodejs-server and implement service

swagger-nodegen-cli generate \
  -i ./api/swagger.yaml \
  -o ./highscore-server \
  -l nodejs-server

cd highscore-server
npm install
npm audit fix
npm install nedb

Live Coding

Highscore Client - Part 1 (<= 5min)

Generate Angular Application

ng new highscore-client
cd highscore-client
npm audit fix
ng serve

Highscore Service Module (<= 5min)

mkdir config
touch config/typescript-angular.json

swagger-nodegen-cli config-help \
  -l typescript-angular

swagger-nodegen-cli generate \
  -i ./api/swagger.yaml \
  -o ./highscore-client/src/lib/highscore-service \
  -c ./config/typescript-angular.json \
  -l typescript-angular

Highscore Client - Part 2 (<= 30 min)

Implement Angular Client using the data service module and the highscore-server

npm i rxjs-compat
npm audit fix

Live Coding

Highscore Server - Part 2 (<= 5min)

Update with express middleware and restart server

cd ./highscore-server
npm i express cors helmet

Live Coding

Highscore Client - Part 3 (optional)

Add custom Style (e.g. bootstrap), use CSS preprocessors (e.g. LESS)

npm i bootstrap
ng config schematics.@schematics/angular:component.styleext less

Live Coding