HakubJozak / barbecue

Utilities and generators for apps on Ember with Rails as a Backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Barbecue

Barbecue is a strongly opiniated set of Ember components and Rails generators useful to quickly scaffold an almost production ready administration interface for your models.

Basic Usage

Use shle to generate a fresh Rails application. Then sketch your models in db/blueprint.rb like this:

  model :animal do
    string   :name, required: true
    string   :species, translated: true
    text     :bio, translated: true
    integer  :number_of_legs
    boolean  :happy
    decimal  :weight
    datetime :birth_date
    images :wildlife_photos
  end

  model :contact do
    string :first_name
    string :last_name
    string :email, required: true
    image  :portrait
  end

And run the Blueprint generator:

rails generate barbecue:blueprint --rebuild-db

That will use a set of underlying generators to create an ActiveRecord model, ActiveModel Serializer, RESTful controller for JSON API and UI frontend files for Ember.js.

Run foreman start, login (see `db/seed.rb' for password) and behold the admin interface.

TODO

  • merge with Shle under a blueprint project

License

This project uses MIT-LICENSE.

About

Utilities and generators for apps on Ember with Rails as a Backend

License:MIT License


Languages

Language:Ruby 68.5%Language:CoffeeScript 21.4%Language:HTML 7.3%Language:CSS 2.3%Language:JavaScript 0.6%