A generator creating ember specific templates in a laravel world

Ember/Laravel Generator

A Yeoman generator for building Ember web apps with a Laravel Backend

Once this generator is finished you should be able to run yo install -g generator-ember-larave. For now, clone this repository and then run 'npm link'.

Important: when you clone the repository, clone it into a folder named "generator-ember-laravel". If you do not, the symlink will not work.

yo ember-laravel

scaffolds ember app inside main directory like so:

  • ember/
  • ember/model/
  • ember/views/
  • ember/templates/
  • ember/controllers/
  • ember/routes/
  • app.js
  • routes.js

yo ember-laravel:model

yo ember-laravel:controller

yo ember-laravel:view

yo ember-laravel:templates templateName


{{!-- file located at ember/templates/templateName.hbs --}}
<h1> templateName Template </h1> 

Protip: The command supports subdirectories. So if you type something like yo ember-laravel:template customers/index, it would create a template located in ember/templates/customers/index.hbs

yo ember-laravel:route routeName

generates a route file ember/routes/routeName.js that follows this code structure:

App.RouteNameRoute = Ember.Route.extend({
  model: function(params) {