Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Bus Lover
Blogger on raibledesigns.com and
developer.okta.com/blog
What about You?
Bootiful Development
http://bit.ly/boot-and-ng
Today’s Agenda
Why Spring Boot?
https://twitter.com/phillip_webb/status/641444531867680768 @spring_io
#springio17
SPRING INITIALIZR @ start.spring.io
@SpringBootApplication
public class DemoApplication {
@Entity
class Blog {
@Id
@GeneratedValue
private Long id;
private String name;
@RepositoryRestResource
interface BlogRepository extends JpaRepository<Blog, Long> {
}
Microservices with Spring Boot
@spring_io
https://developer.okta.com/blog/2017/06/15/build-microservices-architecture-spring-boot #springio17
Demo: Build a Spring Boot API
ES6, ES7 and TypeScript
ES5: es5.github.io
ES6: git.io/es6features
ES7: bit.ly/es7features
$ tsc greeter.ts
https://www.typescriptlang.org/docs/tutorial.html
bus.ts
@spring_io
#springio17
“Node.js is a JavaScript runtime built on Chrome's V8
JavaScript engine. Node.js uses an event-driven, non-
blocking I/O model that makes it lightweight and
efficient. Node.js' package ecosystem, npm, is the
largest ecosystem of open source libraries in the world.”
https://nodejs.org
https://github.com/creationix/nvm
Leading JavaScript Frameworks in 2018
angular.io
facebook.github.io/react
vuejs.org
@spring_io
#springio17
“Angular and React dominate:
Nothing else even comes close.”
Crunch the Numbers
Hot Frameworks hotframeworks.com
@spring_io
#springio17
Jobs on Indeed (US)
December 2018
11,000
8,250
5,500
2,750
0
React Angular Vue
@spring_io
#springio17
Stack Overflow Tags
December 2018
160,000
120,000
80,000
40,000
0
React Angular Vue
@spring_io
#springio17
GitHub Stars
December 2018
130,000
97,500
65,000
32,500
0
React Angular Vue
@spring_io
#springio17
GitHub Star Growth
@spring_io
http://www.timqian.com/star-history
#springio17
Hello World with Angular
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `<h1>Hello {{name}}</h1>`
})
export class AppComponent {
name = 'World';
}
<my-app></my-app>
Hello World with Angular
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Hello World with Angular
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule);
Angular CLI
Angular CLI
Angular CLI
Get Started with Angular
Angular QuickStart
https://angular.io/guide/quickstart
Angular Seed
https://github.com/mgechev/angular-seed
https://github.com/NathanWalker/angular-seed-advanced
Demo: Build an Angular Client
export class BeerListComponent implements OnInit {
beers: Array<any>;
ngOnInit() {
this.beerService.getAll().subscribe(
data => {
this.beers = data;
for (let beer of this.beers) {
this.giphyService.get(beer.name).subscribe(url => {
beer.giphyUrl = url;
});
}
},
error => console.log(error)
)
}
}
Progressive Web Apps
@spring_io
#springio17
“We’ve failed on mobile”
— Alex Russell
https://youtu.be/K1SFnrf4jZo
Mobile Hates You!
How to fight back:
Implement PRPL
Lighthouse
https://developer.okta.com/blog/2017/07/20/the-ultimate-guide-to-progressive-web-applications
JHipster jhipster.tech
@spring_io
#springio17
Microservices with JHipster
@spring_io
#springio17
The JHipster Mini-Book
5.0 Release on November 14, 2018
jhipster-book.com
21-points.com
@jhipster_book
Try Angular
Try OIDC
Explore PWAs
https://developer.okta.com/blog/2017/09/19/build-a-secure-notes-application-with-kotlin-typescript-and-okta
@SpringBootApplication
class NotesApplication
@Entity
data class Note(@Id @GeneratedValue var id: Long? = null,
var text: String? = null,
@JsonIgnore var user: String? = null)
@RepositoryRestResource
interface NotesRepository : JpaRepository<Note, Long>
DIY: Bootiful Development
http://bit.ly/boot-and-ng
Angular 7 Goodness
@spring_io
https://developer.okta.com/blog/2018/12/04/angular-7-oidc-oauth2-pkce
#springio17
Angular 7 + Spring Boot 2.1 Screencast
@spring_io
https://youtu.be/HoDzatvGDlI
#springio17
Security Books
https://www.oauth.com https://developer.okta.com/books/api-security
developer.okta.com/blog
@oktadev
Questions?
Keep in touch!
raibledesigns.com
@mraible
Presentations
speakerdeck.com/mraible
Code
github.com/oktadeveloper
developer.okta.com