Skip to content

Storyboard for a simple highscore sample application

Notifications You must be signed in to change notification settings

sius/hall-of-fame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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 [email protected]:sius/hall-of-fame.git
cd hall-of-fame

Install Some Npm Tools Globally (<= 5min)

npm i -g [email protected]
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

About

Storyboard for a simple highscore sample application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published