netlify
Fronteers Workshop
January 2019
@philhawksworth
INFRASTRUCTURE c
TOOLING / CDN / CI/CD / AUTOMATION / TRIGGERS / EVENTS
Slide 23
netlify
Fronteers Workshop
OUR FOCUS
January 2019
@philhawksworth
WORKING WITH SSGs WORKING WITH NETLIFY
Slide 24
netlify
Fronteers Workshop
January 2019
@philhawksworth
SSG
Slide 25
netlify
Fronteers Workshop
January 2019
HOSTING
LOCAL
STATIC SERVER
BUILD
CONTENT TEMPLATES DATA
@philhawksworth
CDN
Slide 26
Slide 27
netlify
Fronteers Workshop
January 2019
@philhawksworth
! s k n a th
Slide 28
netlify
Fronteers Workshop
January 2019
@philhawksworth
HOW TO CHOOSE? t h g i r e h t
SSG
Slide 29
netlify
Fronteers Workshop
STATICGEN.COM
January 2019
@philhawksworth
Slide 30
netlify
Fronteers Workshop
January 2019
@philhawksworth
LANGUAGE WORKFLOW PERFORMANCE ARCHITECTURE OUTPUT CONTROL ADOPTION
Slide 31
netlify
Fronteers Workshop
January 2019
@philhawksworth
JEKYLL HUGO GATSBY NEXT NUXT VUEPRESS
Slide 32
netlify
Fronteers Workshop
January 2019
@philhawksworth
OUR SSG FOR TODAY
ELEVENTY 👋
Slide 33
netlify
Fronteers Workshop
January 2019
@philhawksworth
WHY ELEVENTY? LOGICAL ARCHITECTURE FLEXIBLE TEMPLATING NOTHING YOU DON’T ASK FOR JAVASCRIPT ALL THE WAY DOWN
Slide 34
netlify
Fronteers Workshop
January 2019
HOSTING
LOCAL
STATIC SERVER
BUILD
CONTENT TEMPLATES DATA
@philhawksworth
CDN
Slide 35
netlify
Fronteers Workshop
January 2019
@philhawksworth
CONCEPT
Slide 36
netlify
Fronteers Workshop
January 2019
@philhawksworth
GIT-BASED DEPLOYMENTS
Slide 37
netlify
Fronteers Workshop
January 2019
@philhawksworth
NETLIFY
LOCAL
CDN
STATIC SERVER
BUILD
GIT
BUILD
Slide 38
netlify
Fronteers Workshop
January 2019
@philhawksworth
EXAMPLE First look at Eleventy site structure
Slide 39
netlify
Fronteers Workshop
January 2019
@philhawksworth
EXERCISE First build, then first deploy
Slide 40
netlify
Fronteers Workshop
January 2019
@philhawksworth
MINIMUM VIABLE SITE 👉 findthat.at/repo
Slide 41
netlify
Fronteers Workshop
January 2019
@philhawksworth
ABOUT THE FOLDERS
Slide 42
netlify
Fronteers Workshop
January 2019
@philhawksworth
CONCEPT
Slide 43
netlify
Fronteers Workshop
January 2019
@philhawksworth
ATOMIC DEPLOYS
Slide 44
netlify
Fronteers Workshop
January 2019
@philhawksworth
IMMUTABLE DEPLOYS
Slide 45
netlify
Fronteers Workshop
January 2019
@philhawksworth
ADDRESSABLE DEPLOYS
Slide 46
netlify
Fronteers Workshop
January 2019
@philhawksworth
EXAMPLE Add pages, edit navigation
Slide 47
netlify
Fronteers Workshop
January 2019
@philhawksworth
EXERCISE Modify site , deploy, rollback
Slide 48
netlify
Fronteers Workshop
January 2019
@philhawksworth
CONCEPT
Slide 49
netlify
Fronteers Workshop
January 2019
@philhawksworth
DATA ABSTRACTION
Slide 50
netlify
Fronteers Workshop
January 2019
@philhawksworth
CONTENT APIS
NETLIFY
LOCAL
CDN
STATIC SERVER
BUILD
GIT
BUILD
Slide 51
netlify
Fronteers Workshop
January 2019
@philhawksworth
EXAMPLE add medium, local seed, targets
Slide 52
netlify
Fronteers Workshop
January 2019
@philhawksworth
EXERCISE add medium, local seed, targets
Slide 53
netlify
Fronteers Workshop
January 2019
@philhawksworth
DATA TO/FROM NETLIFY
Slide 54
netlify
Fronteers Workshop
January 2019
@philhawksworth
FORMS
Slide 55
netlify
Fronteers Workshop
January 2019
@philhawksworth
EXAMPLE propose meet up form
Slide 56
netlify
Fronteers Workshop
January 2019
@philhawksworth
EXERCISE add a form and some entries
Slide 57
netlify
Fronteers Workshop
January 2019
@philhawksworth
NETLIFY API 👉 findthat.at/api
Slide 58
netlify
Fronteers Workshop
January 2019
@philhawksworth
AUTH AND ENVIRONMENT VARIABLES
Slide 59
netlify
Fronteers Workshop
January 2019
@philhawksworth
EXAMPLE get proposal data from API
Slide 60
netlify
Fronteers Workshop
January 2019
@philhawksworth
EXERCISE create auth tokens, get proposal data from API locally and in prod
Slide 61
netlify
Fronteers Workshop
January 2019
@philhawksworth
CONCEPT
Slide 62
netlify
Fronteers Workshop
January 2019
@philhawksworth
EVENTS AND WEBHOOKS ARE WHERE THE FUN IS!
Slide 63
AUTOMATION AND LOW FRICTION
Slide 64
Slide 65
Slide 66
Slide 67
Slide 68
SETYOURWATCHBY.NETLIFY.COM
Slide 69
SETYOURWATCHBY.NETLIFY.COM
Slide 70
SETYOURWATCHBY.NETLIFY.COM
Slide 71
SETYOURWATCHBY.NETLIFY.COM
Slide 72
SETYOURWATCHBY.NETLIFY.COM
Slide 73
WEBSTASK.IO
Slide 74
WEBSTASK.IO
Slide 75
netlify
Fronteers Workshop
January 2019
@philhawksworth
EXERCISE make form submissions trigger a rebuild
Slide 76
netlify
Fronteers Workshop
January 2019
@philhawksworth
CONCEPT
Slide 77
netlify
Fronteers Workshop
January 2019
@philhawksworth
I ABSOLUTELY POSITIVELY NEED A LITTLE LOGIC ON A SERVER
Slide 78
netlify
Fronteers Workshop
January 2019
@philhawksworth
SERVERLESS TO THE RESCUE
Slide 79
netlify
Fronteers Workshop
January 2019
FUNCTIONS AS A SERVICE
@philhawksworth
NO AWS CONFIGURATION INSTANT PROVISIONING API GATWEAY & URLS IMMUTABLE VERSIONS SITE SYNCHRONICITY
Slide 80
netlify
Fronteers Workshop
January 2019
@philhawksworth
NETLIFY LAMBDA 👉 findthat.at/lambda
Slide 81
netlify
Fronteers Workshop
January 2019
@philhawksworth
FUNCTIONS PLAYGROUND 👉 findthat.at/playground
Slide 82
netlify
Fronteers Workshop
January 2019
@philhawksworth
EXAMPLE add a delete button
Slide 83
netlify
Fronteers Workshop
January 2019
@philhawksworth
EXERCISE add a delete button and trigger a redeploy
Slide 84
netlify
Fronteers Workshop
January 2019
@philhawksworth
(FOLDER 5) ADD NETLIFY-LAMBDA AND REQUEST USE NETLIFY LAMBDA IN BUILD STEP HELLO WORLD EXPOSE THE SUBMISSION ID IN PROPOSAL DATA ADD DELETE BUTTON TO THE PROPOSAL LISTINGS
Slide 85
netlify
Fronteers Workshop
January 2019
@philhawksworth
FUNCTIONS CAN BE TRIGGERED BY EVENTS 👉 findthat.at/eventdriven
Slide 86
netlify
Fronteers Workshop
January 2019
@philhawksworth
CONCEPT
Slide 87
netlify
Fronteers Workshop
January 2019
@philhawksworth
REDIRECTS API (AT THE EDGE) 👉 findthat.at/redirects
Slide 88
netlify
Fronteers Workshop
January 2019
@philhawksworth
REDIRECTS ANY HTTP RESPONSE CODE PROXYING CUSTOM 404s COUNTRY LANGUAGE ROLE