Slide 1

Slide 1 text

a Tale of Two Apps How Ember Changed the Way I Build Web Applications

Slide 2

Slide 2 text

More than just a talk on Ember

Slide 3

Slide 3 text

Today, we are going to T A L K about 3things

Slide 4

Slide 4 text

Today, we are going to T A L K about 3things A rich Man

Slide 5

Slide 5 text

Today, we are going to T A L K about 3things A laid back Dude A rich Man

Slide 6

Slide 6 text

Today, we are going to T A L K about 3things A laid back Dude A rug A rich Man

Slide 7

Slide 7 text

Jamie Wright @jwright

Slide 8

Slide 8 text

App #1 Server Side Rendering

Slide 9

Slide 9 text

App #1 Google http://lebowskifest.com Web Page Title

Slide 10

Slide 10 text

http://lebowskifest.com App #1 Google http://lebowskifest.com Web Page Title

Slide 11

Slide 11 text

http://lebowskifest.com App #1 Google http://lebowskifest.com Web Page Title 1.Router handles the request

Slide 12

Slide 12 text

http://lebowskifest.com App #1 Google http://lebowskifest.com Web Page Title 1.Router handles the request 2.Controller is created

Slide 13

Slide 13 text

http://lebowskifest.com App #1 Google http://lebowskifest.com Web Page Title 1.Router handles the request 2.Controller is created 3.Controller action is called

Slide 14

Slide 14 text

http://lebowskifest.com App #1 Google http://lebowskifest.com Web Page Title 1.Router handles the request 2.Controller is created 3.Controller action is called 4.Controller creates a template & provides data

Slide 15

Slide 15 text

http://lebowskifest.com App #1 Google http://lebowskifest.com Web Page Title 1.Router handles the request 2.Controller is created 3.Controller action is called 4.Controller creates a template & provides data 5.Template is rendered into HTML

Slide 16

Slide 16 text

http://lebowskifest.com App #1 Google http://lebowskifest.com Web Page Title 1.Router handles the request 2.Controller is created 3.Controller action is called 4.Controller creates a template & provides data 5.Template is rendered into HTML 6.HTML is returned for the response

Slide 17

Slide 17 text

http://lebowskifest.com App #1 Google http://lebowskifest.com Web Page Title 1.Router handles the request 2.Controller is created 3.Controller action is called 4.Controller creates a template & provides data 5.Template is rendered into HTML 6.HTML is returned for the response MVC

Slide 18

Slide 18 text

http://lebowskifest.com

Slide 19

Slide 19 text

http://lebowskifest.com

Slide 20

Slide 20 text

http://lebowskifest.com

Slide 21

Slide 21 text

http://lebowskifest.com

Slide 22

Slide 22 text

http://lebowskifest.com

Slide 23

Slide 23 text

The Good App #1

Slide 24

Slide 24 text

s You know the environment App #1

Slide 25

Slide 25 text

s Caching App #1

Slide 26

Slide 26 text

s Google can crawl App #1

Slide 27

Slide 27 text

The Bad App #1

Slide 28

Slide 28 text

App #1 Bad UX in most cases

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

App #1 Incomplete prototyping

Slide 32

Slide 32 text

Talk from a Mockup

Slide 33

Slide 33 text

App #1 Incomplete prototyping

Slide 34

Slide 34 text

App #1 Slower to polish

Slide 35

Slide 35 text

App #1 A false sense of done

Slide 36

Slide 36 text

App #1 Boundaries

Slide 37

Slide 37 text

// app/assets/javascripts/availability.js ! $('select.monthYearSelect').change(function(e) { var country = $(e.target).data("country-code"); var city = $(e.target).data("city-permalink"); var tour = $(e.target).data("tour-id"); ! $.get("/" + country + "/" + city + "/" + tour + "/tickets/ availability/" + $(e.target).val() + "/dates"); ! e.preventDefault(); });

Slide 38

Slide 38 text

# app/controllers/availability_controller.rb ! class AvailabilityController < ApplicationController def dates @dates = OfferAvailability.new(params[:id], Date.today, Date.new(year, month, -1)).dates end end

Slide 39

Slide 39 text

// app/views/availability/dates.js.erb ! $("select.daySelect").empty(); $("select.daySelect").html("<%= j content_tag(:option, "Which Day?", value: "", class: "disabled", disabled: "disabled", selected: "selected") + options_from_collection_for_select(@dates, :id, :display) %>"); $("select.daySelect").removeClass("selected"); ! <% if @dates.size == 1 %> $("select.daySelect").val($("select.daySelect option:nth- child(2)").val()).change(); $("select.daySelect").addClass("selected"); <% end %>

Slide 40

Slide 40 text

w App #2 Client Side Rendering

Slide 41

Slide 41 text

App #2 Google http://lebowskifest.com Web Page Title

Slide 42

Slide 42 text

http://lebowskifest.com App #2 Google http://lebowskifest.com Web Page Title

Slide 43

Slide 43 text

http://lebowskifest.com App #2 Google http://lebowskifest.com Web Page Title

Slide 44

Slide 44 text

http://lebowskifest.com

Slide 45

Slide 45 text

http://lebowskifest.com

Slide 46

Slide 46 text

http://lebowskifest.com

Slide 47

Slide 47 text

http://lebowskifest.com

Slide 48

Slide 48 text

http://lebowskifest.com

Slide 49

Slide 49 text

http://lebowskifest.com

Slide 50

Slide 50 text

{} http://lebowskifest.com

Slide 51

Slide 51 text

{} http://lebowskifest.com

Slide 52

Slide 52 text

{} http://lebowskifest.com

Slide 53

Slide 53 text

{} http://lebowskifest.com

Slide 54

Slide 54 text

{} http://lebowskifest.com

Slide 55

Slide 55 text

{} http://lebowskifest.com

Slide 56

Slide 56 text

What rendering technique is faster?

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

Rendering on THE server is FASTER

Slide 59

Slide 59 text

The Good App #2

Slide 60

Slide 60 text

App #2 Seems faster

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

App #2 Usually leads to good UX

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

App #2 Clear definition of boundaries

Slide 69

Slide 69 text

App #2 Faster to polish

Slide 70

Slide 70 text

App #2 Better sense of done

Slide 71

Slide 71 text

App #2 Simplest thing first

Slide 72

Slide 72 text

App #2 First class citizens

Slide 73

Slide 73 text

The Bad App #2

Slide 74

Slide 74 text

App #2 Error handling

Slide 75

Slide 75 text

App #2 Google http://lebowskifest.com Web Page Title

Slide 76

Slide 76 text

App #2 Google http://lebowskifest.com Web Page Title WhItE PaGe Of DeAtH

Slide 77

Slide 77 text

App #2 Jump to crawl

Slide 78

Slide 78 text

bustle.com

Slide 79

Slide 79 text

App #2 Debugging

Slide 80

Slide 80 text

App #2 Progressive Enhancement

Slide 81

Slide 81 text

The rug Ember

Slide 82

Slide 82 text

http://lebowskifest.com

Slide 83

Slide 83 text

http://lebowskifest.com

Slide 84

Slide 84 text

{} http://lebowskifest.com

Slide 85

Slide 85 text

{} http://lebowskifest.com

Slide 86

Slide 86 text

{} http://lebowskifest.com

Slide 87

Slide 87 text

{} http://lebowskifest.com

Slide 88

Slide 88 text

{} http://lebowskifest.com

Slide 89

Slide 89 text

Application The rug window.App = Ember.Application.create();

Slide 90

Slide 90 text

Router window.App = Ember.Application.create(); The rug

Slide 91

Slide 91 text

Router window.App = Ember.Application.create(); ! App.Router.reopen({ this.route("about"); }); The rug /about

Slide 92

Slide 92 text

Router window.App = Ember.Application.create(); ! App.Router.reopen({ this.route("about"); this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); The rug /about /projects /projects/new /projects/:project_id

Slide 93

Slide 93 text

Routes The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); });

Slide 94

Slide 94 text

Routes The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({});

Slide 95

Slide 95 text

Routes The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({}); App.ProjectsNewRoute = Ember.Route.extend({});

Slide 96

Slide 96 text

Routes The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({}); App.ProjectsNewRoute = Ember.Route.extend({}); App.ProjectRoute = Ember.Route.extend({});

Slide 97

Slide 97 text

Models The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({}); App.ProjectsNewRoute = Ember.Route.extend({}); App.ProjectRoute = Ember.Route.extend({});

Slide 98

Slide 98 text

Models The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({ model: function() { return this.store.findAll('project'); } }); ! App.ProjectsNewRoute = Ember.Route.extend({}); App.ProjectRoute = Ember.Route.extend({});

Slide 99

Slide 99 text

Models The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({ model: function() { return this.store.findAll('project'); } }); ! App.ProjectsNewRoute = Ember.Route.extend({}); App.ProjectRoute = Ember.Route.extend({}); GET /api/projects

Slide 100

Slide 100 text

Models The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({ model: function() { return this.store.findAll('project'); } }); ! App.ProjectsNewRoute = Ember.Route.extend({ model: function() { return App.Project.create(); } }); ! App.ProjectRoute = Ember.Route.extend({});

Slide 101

Slide 101 text

Models The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({ model: function() { return this.store.findAll('project'); } }); ! App.ProjectsNewRoute = Ember.Route.extend({ model: function() { return App.Project.create(); } }); ! App.ProjectRoute = Ember.Route.extend({ model: function(params) { return this.store.find('project', params.project_id); } });

Slide 102

Slide 102 text

Models The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({ model: function() { return this.store.findAll('project'); } }); ! App.ProjectsNewRoute = Ember.Route.extend({ model: function() { return App.Project.create(); } }); ! App.ProjectRoute = Ember.Route.extend({ model: function(params) { return this.store.find('project', params.project_id); } }); GET /api/projects/65

Slide 103

Slide 103 text

Controllers The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({ model: function() { return this.store.findAll('project'); } }); ! App.ProjectsNewRoute = Ember.Route.extend({ model: function() { return App.Project.create(); } }); ! App.ProjectRoute = Ember.Route.extend({ model: function(params) { return this.store.find('project', params.project_id); } });

Slide 104

Slide 104 text

Controllers The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({ model: function() { return this.store.findAll('project'); } }); ! App.ProjectsNewRoute = Ember.Route.extend({...}); App.ProjectRoute = Ember.Route.extend({...});

Slide 105

Slide 105 text

Controllers The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({ model: function() { return this.store.findAll('project'); } }); ! App.ProjectsNewRoute = Ember.Route.extend({...}); App.ProjectRoute = Ember.Route.extend({...}); ! App.ProjectsIndexController = Ember.ArrayController.extend({});

Slide 106

Slide 106 text

Controllers The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({ model: function() { return this.store.findAll('project'); } }); ! App.ProjectsNewRoute = Ember.Route.extend({...}); App.ProjectRoute = Ember.Route.extend({...}); ! App.ProjectsIndexController = Ember.ArrayController.extend({ sortProperties: ['name', 'createdAt']; sortAscending: true; });

Slide 107

Slide 107 text

Controllers The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({...}); App.ProjectsNewRoute = Ember.Route.extend({...}); App.ProjectRoute = Ember.Route.extend({...}); ! App.ProjectsIndexController = Ember.ArrayController.extend({...}); App.ProjectsNewController = Ember.ObjectController.extend({ actions: { resetForm: function() { this.get('model').rollback(); } } });

Slide 108

Slide 108 text

Views The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({...}); App.ProjectsNewRoute = Ember.Route.extend({...}); App.ProjectRoute = Ember.Route.extend({...}); ! App.ProjectsIndexController = Ember.ArrayController.extend({...}); App.ProjectsNewController = Ember.ObjectController.extend({}); App.ProjectController = Ember.ObjectController.extend({});

Slide 109

Slide 109 text

Views The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsNewRoute = Ember.Route.extend({...}); ! App.ProjectsNewController = Ember.ObjectController.extend({...});

Slide 110

Slide 110 text

Views The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsNewRoute = Ember.Route.extend({...}); ! App.ProjectsNewController = Ember.ObjectController.extend({...}); ! App.ProjectsNewView = Ember.View.extend({ click: function(event) { this.get('controller').send('resetForm'); } });

Slide 111

Slide 111 text

Templates The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({...}); App.ProjectsNewRoute = Ember.Route.extend({...}); App.ProjectRoute = Ember.Route.extend({...}); ! App.ProjectsIndexController = Ember.ArrayController.extend({...}); App.ProjectsNewController = Ember.ObjectController.extend({...}); App.ProjectController = Ember.ObjectController.extend({}); ! App.ProjectsIndexView = Ember.View.extend({}); App.ProjectsNewView = Ember.View.extend({}); App.ProjectView = Ember.View.extend({});

Slide 112

Slide 112 text

Templates The rug window.App = Ember.Application.create(); ! App.Router.reopen({ this.resource("projects", function() { this.route("new"); }); this.resource("project", { path: "/projects/:project_id" }); }); App.ProjectsIndexRoute = Ember.Route.extend({...}); App.ProjectsNewRoute = Ember.Route.extend({...}); App.ProjectRoute = Ember.Route.extend({...}); ! App.ProjectsIndexController = Ember.ArrayController.extend({...}); App.ProjectsNewController = Ember.ObjectController.extend({...}); App.ProjectController = Ember.ObjectController.extend({}); ! App.ProjectsIndexView = Ember.View.extend({}); App.ProjectsNewView = Ember.View.extend({}); App.ProjectView = Ember.View.extend({}); ! <div> {{outlet}} </div>

Slide 113

Slide 113 text

Templates The rug <table> <thead> <tr> <th>Name</th> <th>Created</th> </tr> </thead> <tbody> {{#each}} <tr> <td>{{name}}</td> <td>{{formattedDate format='LL' value=createdAt}}</td> </tr> {{/each}} </tbody> </table>

Slide 114

Slide 114 text

Conventions The rug

Slide 115

Slide 115 text

As Easy As Rails The rug

Slide 116

Slide 116 text

Getting to done The rug

Slide 117

Slide 117 text

Integration Testing The rug ! module("Project Creation", { setup: function() { App.reset(); } }); ! test("creating a project displays the new project", function(){ visit("/projects/new"); fillIn("input[placeholder='Name']", "A new project"); click(".submit"); andThen(function() { ok(find("h1:contains('A new project')").length, "The project's name should display"); }); }); !

Slide 118

Slide 118 text

Unit Testing The rug var model = null; var controller = null; ! module "App.ProjectsNewController::validations", { setup: function() { App.reset(); this.model = Ember.Object.create(); this.controller = App.ProjectsNewController.create(content: @model); } }); ! test("name must be present", function() { this.controller.set('name', '') errors = this.controller.get('errors') deepEqual errors.name, ["can't be blank"] });

Slide 119

Slide 119 text

Fixtures The rug window.App = Ember.Application.create(); ! App.ProjectsIndexRoute = Ember.Route.extend({ model: function() { return this.store.findAll('project'); } });

Slide 120

Slide 120 text

Fixtures The rug window.App = Ember.Application.create(); ! App.ProjectsIndexRoute = Ember.Route.extend({ model: function() { return this.store.findAll('project'); } }); ! App.ApplicationAdapter = DS.FixtureAdapter.extend();

Slide 121

Slide 121 text

Fixtures The rug window.App = Ember.Application.create(); ! App.ProjectsIndexRoute = Ember.Route.extend({ model: function() { return this.store.findAll('project'); } }); ! App.ApplicationAdapter = DS.FixtureAdapter.extend(); ! App.Project.FIXTURES = [ { id: 1, name: 'The Jeffery Lebowski Project', createdAt: new Date() }, { id: 2, name: 'The Dude\'s Project', createdAt: new Date() } ];

Slide 122

Slide 122 text

Fixtures The rug window.App = Ember.Application.create(); ! App.ProjectsIndexRoute = Ember.Route.extend({ model: function() { return this.store.findAll('project'); } }); ! App.ProjectAdapter = DS.ActiveModelAdapter.extend(); ! App.ApplicationAdapter = DS.FixtureAdapter.extend();

Slide 123

Slide 123 text

API Stubbing The rug // config/server.js ! module.exports = { drawRoutes: function(app) { app.get('/api/projects', function(req, res) { res.json([ { id: 1, name: 'Blah', created_at: new Date() }, { id: 2, name: 'Blah Again', created_at: new Date() }, ]); } } } !

Slide 124

Slide 124 text

API Building The rug require 'spec_helper' ! describe Api::ProjectsController do describe "GET 'index'" do context 'with no authentication' do it 'should return a 401' do get :index, format: :json response.status.should == 401 end end end end

Slide 125

Slide 125 text

API Building The rug class Api::ProjectsController < Api::ApiController respond_to :json ! def index render nothing: true end end

Slide 126

Slide 126 text

API Building The rug class Api::ProjectsController < Api::ApiController respond_to :json ! def index authenticate! render nothing: true end end

Slide 127

Slide 127 text

API Building The rug require 'spec_helper' ! describe Api::ProjectsController do describe "GET 'index'" do context 'with no authentication' do it 'should return a 401' do get :index, format: :json response.status.should == 401 end end ! context 'with valid credentials' do let(:user) { FactoryGirl.create(:user) } ! it 'should return a 200' do get :index, format: :json, 'HTTP_AUTHORIZATION' => "Token token=#{user.api_token}" response.status.should == 200 end end end end

Slide 128

Slide 128 text

API Building The rug require 'spec_helper' ! describe Api::ProjectsController do describe "GET 'index'" do context 'with no authentication' do it 'should return a 401' do get :index, format: :json response.status.should == 401 end end ! context 'with valid credentials' do let(:user) { FactoryGirl.create(:user) } ! it 'should return a 200' do get :index, format: :json, 'HTTP_AUTHORIZATION' => "Token token=#{user.api_token}" response.status.should == 200 end ! it 'returns all the current goals for the current user for that week' do projects = [Project.new(name: 'My first project')] Project.stubs(:where).returns projects get :index, format: :json, 'HTTP_AUTHORIZATION' => "Token token=#{user.api_token}" json = JSON.parse(response.body)['projects'] json.length.should == 1 json[0]['name'].should == 'My first project' end end end end

Slide 129

Slide 129 text

API Building The rug class Api::ProjectsController < Api::ApiController respond_to :json ! def index authenticate! @projects = Project.where(owner_id: current_user.id) respond_with @projects, each_serializer: ProjectSerializer end end

Slide 130

Slide 130 text

Building The rug $ lineman build

Slide 131

Slide 131 text

Building The rug Running "common" task ! Running "coffee:compile" (coffee) task File generated/js/app.coffee.js created. File generated/js/spec.coffee.js created. >> Destination (generated/js/spec-helpers.coffee.js) not written because compiled files were empty. ! Running "less:compile" (less) task >> Destination not written because no source files were found. File generated/css/app.less.css created. ! Running "jshint:files" (jshint) task ! Running "handlebars:compile" (handlebars) task >> Destination not written because compiled files were empty. ! Running "jst:compile" (jst) task File "generated/template/underscore.js" created. ! Running "concat:js" (concat) task File "generated/js/app-78512a8e6fcb4e70b8e2694693651800.js" created. ! Running "concat:spec" (concat) task File "generated/js/spec.js" created. ! Running "concat:css" (concat) task File "generated/css/app-f7a1da849888d2c913a5374c7dc0cbbe.css" created. ! Running "images:dev" (images) task Copying images to 'generated/img' ! Running "webfonts:dev" (webfonts) task Copying webfonts to 'generated/webfonts' ! Running "pages:dev" (pages) task generated/index.html generated from app/pages/index.us ! Running "dist" task ! Running "uglify:js" (uglify) task File "dist/js/app-78512a8e6fcb4e70b8e2694693651800.js" created. ! Running "cssmin:compress" (cssmin) task File dist/css/app-f7a1da849888d2c913a5374c7dc0cbbe.css created. ! Running "images:dist" (images) task Copying images to 'dist/img' ! Running "webfonts:dist" (webfonts) task Copying webfonts to 'dist/webfonts' ! Running "pages:dist" (pages) task dist/index.html generated from app/pages/index.us ! Done, without errors.

Slide 132

Slide 132 text

Building The rug $ tree dist ! dist ├── css │ └── app.css ├── favicon.ico ├── index.html └── js └── app.js

Slide 133

Slide 133 text

Deployment The rug $ heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git

Slide 134

Slide 134 text

Deployment The rug $ cat .buildpacks https://github.com/heroku/heroku-buildpack-ruby https://github.com/testdouble/heroku-buildpack-lineman

Slide 135

Slide 135 text

Deployment The rug $ git push heroku master

Slide 136

Slide 136 text

Gotchas The rug

Slide 137

Slide 137 text

Going against the grain The rug

Slide 138

Slide 138 text

Handlebars The rug

Slide 139

Slide 139 text

Documentation The rug

Slide 140

Slide 140 text

Stack Overflow The rug

Slide 141

Slide 141 text

Thanks, Jim

Slide 142

Slide 142 text

Questions?

Slide 143

Slide 143 text

Why Ember and not *?