https://github.com/kiwiupover/epf_example
Ember.js Persistence Foundation version of the Ember Data Example
https://github.com/kiwiupover/epf_example
Last synced: 3 months ago
JSON representation
Ember.js Persistence Foundation version of the Ember Data Example
- Host: GitHub
- URL: https://github.com/kiwiupover/epf_example
- Owner: kiwiupover
- License: mit
- Created: 2013-08-01T16:21:28.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-09-19T13:59:27.000Z (over 11 years ago)
- Last Synced: 2025-02-28T17:57:09.525Z (3 months ago)
- Language: Ruby
- Homepage: http://epf-example.herokuapp.com/
- Size: 1.47 MB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ember.js Persistence Foundation Example
This is a simple Rails 3.2 app created to demo [Ember.js](https://github.com/emberjs/ember.js),
[(EPF) Ember.js Persistence Foundation](http://epf.io) and
[Active Model Serializers](https://github.com/rails-api/active_model_serializers).
It uses the edge versions of Ember and EPF.This is a conversion of [Dan Gebhardt](https://github.com/dgeb) [Ember Data example](https://github.com/dgeb/ember_data_example). You can see the diff between the EPF example and Ember Data example [here](https://github.com/kiwiupover/epf_example/commit/55dbc9f027fcd434f974c745ea5c8f8b9819f0dd)
The app itself is a simple, single-page contact manager styled with Twitter Bootstrap.

## Installation
Assuming Ruby 1.9.2+ with bundler gem installed:
$ bundle install
$ bundle exec rake db:migrate
$ rails s## Test
#### Known issue some of the test are not working. I will fix this soon using Ember Testing and Karma.### 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](https://github.com/jfirebaugh/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](http://localhost:3500).
## Contributions Welcome :)
Please help improve this example by filing issues and pull requests!
## License
Copyright 2012 Dan Gebhardt. MIT License (see LICENSE for details).