Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including ember-cli-resource with all npm packages installed. Try it out:

var emberCliResource = require("ember-cli-resource")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

ember-cli-resource v0.1.0

The default blueprint for ember-cli addons.

ember-cli-resource

A set of utils and blueprints for creating CRUD resources.

  • git clone git@github.com:Neuromobile/ember-cli-resource

  • cd ember-cli-resource

  • yarn install

  • Ember.js v2.18 or above

  • Ember CLI v2.13 or above

Installation

ember install ember-cli-resource

Usage

  • Creating a new resource:
ember g resource <resource_name>

It creates a model called resource_name and four routes and controllers:

  • <resource_name>/new
  • <resource_name>/index
  • <resource_name>/edit
  • <resource_name>/show

Options:

  • --module String - it adds a preffix to the resource in case you need to organize your models in different folders/routes.

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free