Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ijlee2/hpl-tutorials
https://github.com/ijlee2/hpl-tutorials
ember ember-cli-mirage ember-test-selectors faker sass tutorial
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ijlee2/hpl-tutorials
- Owner: ijlee2
- Created: 2018-12-09T21:09:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-21T13:11:44.000Z (about 6 years ago)
- Last Synced: 2024-12-03T00:31:49.838Z (24 days ago)
- Topics: ember, ember-cli-mirage, ember-test-selectors, faker, sass, tutorial
- Language: JavaScript
- Size: 307 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HPL Tutorials
## Instructions for Download
1. In terminal, go to your work directory (using `cd`) and type `git clone [email protected]:ijlee2/hpl-tutorials.git`.
1. Type `cd hpl-tutorials`.
1. 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 type `cd hpl-tutorial-01`, then `ember s`.
1. Once an app is running, visit `localhost:4200` on Chrome or Firefox.## Summary
### #01 (Dec. 9th, 2018)
- Use `ember new` to create an Ember project
- Use `ember serve` (or `ember 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` (or `ember g component`) to create 2 components, `my-list` and `my-list-item`
- Display the name of 1 person using `my-list` and `my-list-item` components
- Display the names of 3 people using `{{each}}` helper
- Update the stylesheet (`app/styles/app.css`)To learn more, visit:
- [Handlebars](https://handlebarsjs.com/) (double curly brace notation, `each` helper)
- [Ember Templates 1](https://guides.emberjs.com/release/templates/handlebars-basics/) (skip section on helpers)
- [Ember Templates 2](https://guides.emberjs.com/release/templates/displaying-a-list-of-items/)
- [Ember Component 1](https://guides.emberjs.com/release/components/the-component-lifecycle/) (`init` method)### #02 (Dec. 11th, 2018)
- Use `ember g route` to create `members` and `officers` 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:
- [Ember Route 1](https://guides.emberjs.com/release/routing/defining-your-routes/)
- [Ember Route 2](https://guides.emberjs.com/release/routing/specifying-a-routes-model/)### #03 (Dec. 20th, 2018)
- Use a `controller` to filter data from a route's `model()`
- Define a `model`'s attributes
- Understand the purpose of an `adapter` and a `serializer`
- Use *Mirage* and *Faker.js* to create mock data
- Use *ember-test-selectors* to write integration and acceptance testsTo learn more, visit:
- [Ember Controller](https://guides.emberjs.com/release/controllers/)
- [Ember Model](https://guides.emberjs.com/release/models/defining-models/)
- [Ember CLI Mirage](https://www.ember-cli-mirage.com/docs/v0.4.x/quickstart/)
- [Faker.js](https://github.com/marak/Faker.js/)
- [Ember Test Selectors](https://github.com/simplabs/ember-test-selectors)