Join the dark side
Applied Angular.js
Bussiness class apps
nw.js
- desktop app experience,
- html5, css3, js, webgl - base on Chromium
- complete node.js api support
- print, save to file behaviors,
- creating chrome apps
![](http://nwjs.io/images/nw.png)
Single Page Apps (SPA)
SPA, RWD, WTF
- solid bases:
- @media query,
- rem, em, %,
- not only Bootstrap,
- routing is important
- back button,
- history fix,
Performance PoV
- limited CSS animations,
- SVG over canvas,
- rendering engine support,
ui.router
- state machine,
- state nesting,
- views
- great API - e.g auth
Hybrid Mobile Apps
- based on angular.js,
- uses native components - Cordova
- supports iOS and Android,
- build in browser,
- debug in mobile,
- ship to store
![](http://cookieshq.co.uk/images/2015/11/06/ionic-logo.png)
Backend integration
Fast and furious
- create plain JSON files, in API directory,
- downsides:
- difficult to simulate changes propagation
Express + JSON
- use existing sample JSON,
- build with custom api server (express), to be able to return 403, 404 codes and simulate communication ,
- you can use libs like: chance.js to get more randomized data,
- requires additional step during app serve
Swagger UI
- language agnostic REST API,
- when API is large and constantly changes,
- UI + api explorer + tester,
- easy to use and integrate,
- mock generator
Security
- open,
- secure,
- RFC 7519,
- claim based
JSON Web Token
FIN
Q&A
join-the-dark-side
By Rafał Warzycha
join-the-dark-side
- 498