Slide 1

Slide 1 text

Back in the S.S.R - @ianaya89 1

Slide 2

Slide 2 text

! Nacho Anaya @ianaya89 • Full Stack Developer, Tech Trainer & Speaker • Embajador @Auth0 • Organizador @Vuenos_Aires Back in the S.S.R - @ianaya89 2

Slide 3

Slide 3 text

! Back in the S.S.R - @ianaya89 3

Slide 4

Slide 4 text

! Historia Back in the S.S.R - @ianaya89 4

Slide 5

Slide 5 text

Server Side Scrip*ng !""# Back in the S.S.R - @ianaya89 5

Slide 6

Slide 6 text

XmlHttpRequest !""# Back in the S.S.R - @ianaya89 6

Slide 7

Slide 7 text

AJAX !""# Back in the S.S.R - @ianaya89 7

Slide 8

Slide 8 text

SPA !"#" Back in the S.S.R - @ianaya89 8

Slide 9

Slide 9 text

! Problemas Back in the S.S.R - @ianaya89 9

Slide 10

Slide 10 text

Back in the S.S.R - @ianaya89 10

Slide 11

Slide 11 text

Back in the S.S.R - @ianaya89 11

Slide 12

Slide 12 text

Back in the S.S.R - @ianaya89 12

Slide 13

Slide 13 text

Server Side Scrip*ng Rendering !"#! Back in the S.S.R - @ianaya89 13

Slide 14

Slide 14 text

Back in the S.S.R - @ianaya89 14

Slide 15

Slide 15 text

! Que es S.S.R.? Back in the S.S.R - @ianaya89 15

Slide 16

Slide 16 text

! Ventajas • SEO • Menor Tiempo de Carga • Contenido Más Rapido • Mejor Cacheo • Mas control sobre UX Back in the S.S.R - @ianaya89 16

Slide 17

Slide 17 text

! Desventajas • Deploy mas complejo • Algunas restricciones • Mas carga en el servidor Back in the S.S.R - @ianaya89 17

Slide 18

Slide 18 text

! SSR en Vue.js > Na%vo > Nuxt.js Back in the S.S.R - @ianaya89 18

Slide 19

Slide 19 text

Back in the S.S.R - @ianaya89 19

Slide 20

Slide 20 text

! Numeros 1.0.0-rc11 • ✨ ~8.5K • " 14 Repos • # Coverage • ⬇ ~85k Descargas Back in the S.S.R - @ianaya89 20

Slide 21

Slide 21 text

! Dependencia package.json { "name": "ssr-app", "version": "1.0.0", "scripts": { "dev": "nuxt", "build": "nuxt build", "start": "nuxt start" }, "dependencies": { "nuxt": "^1.0.0-rc11" } } Back in the S.S.R - @ianaya89 21

Slide 22

Slide 22 text

!" Op$mización Gzip - Code Spli-ng - Preload - HTTP2 Back in the S.S.R - @ianaya89 22

Slide 23

Slide 23 text

! Estructura Back in the S.S.R - @ianaya89 23

Slide 24

Slide 24 text

Back in the S.S.R - @ianaya89 24

Slide 25

Slide 25 text

! Vue Components *.vue Back in the S.S.R - @ianaya89 25

Slide 26

Slide 26 text

! vue-loader Transpilacion - Bundling - HMR - Preprocesadores - Linter Back in the S.S.R - @ianaya89 26

Slide 27

Slide 27 text

! vue-router pages/*.vue Back in the S.S.R - @ianaya89 27

Slide 28

Slide 28 text

! vue-router Back in the S.S.R - @ianaya89 28

Slide 29

Slide 29 text

! " " Rutas Está)cas pages/ --| user/ -----| index.vue -----| one.vue --| index.vue Back in the S.S.R - @ianaya89 29

Slide 30

Slide 30 text

! " # Rutas Dinámicas pages/ --| _slug/ -----| comments.vue -----| index.vue --| users/ -----| _id.vue --| index.vue Back in the S.S.R - @ianaya89 30

Slide 31

Slide 31 text

! " Async Data asyncData(context) Back in the S.S.R - @ianaya89 31

Slide 32

Slide 32 text

! Layouts layouts/default.vue Back in the S.S.R - @ianaya89 32

Slide 33

Slide 33 text

! Layouts layouts/desktop.vue Back in the S.S.R - @ianaya89 33

Slide 34

Slide 34 text

! Store store/index.js Back in the S.S.R - @ianaya89 34

Slide 35

Slide 35 text

! Store pages/index.vue Back in the S.S.R - @ianaya89 35

Slide 36

Slide 36 text

! Middleware middleware/auth.js Back in the S.S.R - @ianaya89 36

Slide 37

Slide 37 text

! Middleware pages/secret-page.vue Back in the S.S.R - @ianaya89 37

Slide 38

Slide 38 text

♻ Flujo Back in the S.S.R - @ianaya89 38

Slide 39

Slide 39 text

! Head head() Back in the S.S.R - @ianaya89 39

Slide 40

Slide 40 text

⚙ Configuracion nuxt.config.js Back in the S.S.R - @ianaya89 40

Slide 41

Slide 41 text

! Plugins Liberias - Codigo Isomorfico - Plugins - Filters - Mixins - Components Back in the S.S.R - @ianaya89 41

Slide 42

Slide 42 text

! Components components/*.vue Back in the S.S.R - @ianaya89 42

Slide 43

Slide 43 text

! Deploy npm run build Back in the S.S.R - @ianaya89 43

Slide 44

Slide 44 text

! Sta%c Deploy npm run generate Back in the S.S.R - @ianaya89 44

Slide 45

Slide 45 text

! Starters Basic - Express - Koa - Adonis - TS - PWA Back in the S.S.R - @ianaya89 45

Slide 46

Slide 46 text

! Starters Back in the S.S.R - @ianaya89 46

Slide 47

Slide 47 text

! Demo Back in the S.S.R - @ianaya89 47

Slide 48

Slide 48 text

! Mas! • Nuxt API • next-cli ! • Modulos • Express Back in the S.S.R - @ianaya89 48

Slide 49

Slide 49 text

! Take Away • ! Aplicaciones Universales • " "Sin" Configuracion • # SEO • ⏱ Performance • % Ecosistema Completo Back in the S.S.R - @ianaya89 49

Slide 50

Slide 50 text

! Gracias! @ianaya89 bit.ly/back-ssr Back in the S.S.R - @ianaya89 50