Scaffolds models, routes and templates a la rails
In your ember-cli app, do
ember install ember-cli-scaffold-bootstrap
ember generate scaffold user first_name:string last_name:string age:number open http://localhost:4200/users
This command generates the following files:
These files contain all the CRUD operations and an acceptance test with all tests passing. In order to provide a fake server in both development and tests ember-cli-mirage is used.
It's also possible to generate using the pod structure, just pass the
-pod flag to scaffold generator.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request