- In terminal, go to your work directory (using
cd
) and typegit clone git@github.com:ijlee2/hpl-tutorials.git
. - Type
cd hpl-tutorials
. - Each folder inside
hpl-tutorials
is an Ember app that you can install and run locally. For example, to run the first tutorial, you can typecd hpl-tutorial-01
, thenember s
. - Once an app is running, visit
localhost:4200
on Chrome or Firefox.
- Use
ember new
to create an Ember project - Use
ember serve
(orember s
) to start the Ember app - Understand Component-Driven Design (templates, components)
- Investigate why the default welcome page is rendered (see
app/templates/application.hbs
) - Use
ember generate component
(orember g component
) to create 2 components,my-list
andmy-list-item
- Display the name of 1 person using
my-list
andmy-list-item
components - Display the names of 3 people using
{{each}}
helper - Update the stylesheet (
app/styles/app.css
)
To learn more, visit:
- Handlebars (double curly brace notation,
each
helper) - Ember Templates 1 (skip section on helpers)
- Ember Templates 2
- Ember Component 1 (
init
method)
- Use
ember g route
to createmembers
andofficers
routes - Use
{{link-to}}
helper to navigate between routes - Understand the purpose of
{{outlet}}
- Use a route's
model()
to display data - Use
ember install
to install addons (e.g. ember-cli-sass)
To learn more, visit:
- Use a
controller
to filter data from a route'smodel()
- Define a
model
's attributes - Understand the purpose of an
adapter
and aserializer
- Use Mirage and Faker.js to create mock data
- Use ember-test-selectors to write integration and acceptance tests
To learn more, visit: