Code Monkey home page Code Monkey logo

ember_data_example's Introduction

Ember Data Example

This is a simple Rails 3.2 app created to demo Ember.js, Ember-Data and Active Model Serializers. It uses the edge versions of Ember and Ember Data.

The app itself is a simple, single-page contact manager styled with Twitter Bootstrap.

Screen shot

Installation

Assuming Ruby 1.9.2+ with bundler gem installed:

$ bundle install
$ bundle exec rake db:migrate
$ rails s

Test

Rails

MiniTest::Unit is used for testing the Rails application. To invoke tests:

$ bundle exec rake test

Integration

Capybara is used for integration testing. By default, the poltergeist driver is used, although selenium could be used as well. To change drivers, update the following line in test_helper.rb:

Capybara.default_driver = :selenium

Integration tests are performed by default when running bundle exec rake test. You can just run integration tests with:

$ bundle exec rake test:integration

Ember

The konacha test framework is used for testing the Ember application. To invoke the tests from the command line:

$ bundle exec rake konacha:run

To debug and run the tests in the browser, invoke:

$ bundle exec rake konacha:serve

... and then navigate to http://localhost:3500.

Contributions Welcome :)

Please help improve this example by filing issues and pull requests!

Variations

Chandu Tennety is maintaining a fork of this project that uses Emblem.js templates.

License

Copyright 2012 Dan Gebhardt. MIT License (see LICENSE for details).

ember_data_example's People

Contributors

dgeb avatar sly7-7 avatar pangratz avatar intuitivepixel avatar bcardarella avatar cyril-sf avatar aew avatar lulezi avatar richardiux avatar

Watchers

Kannan S avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.