Skip to content

kagemusha/crambear-rails

Repository files navigation

DEPRECATED

Replaced by ember-cli/rails projects:

Crambear

Crambear is a flash cards app written in Rails and EmberJs. Its aim is to provide a non-trivial example of an actual Ember.js app. And by non-trivial I mean something will more than just 1 or 2 models and which does something besides just CRUD. The Ember client is written in Coffeescript and uses Emblem.js templates.

Features

  • Card Sets: create, update, delete (implemented)
  • Cards: create, edit, delete (implemented)
  • Labels for Card Sets and Cards: you can add to sets - next step is ability to label cards
  • Authentication with Devise: implemented

Ember Version

Currently running on Ember.js 1.0 RC3

Getting Started

To run the app:

(clone or fork the project)
$ bundle install
$ bundle exec rake db:create
$ bundle exec rake db:migrate
$ bundle exec rake db:seed
$ rails server

Data Model

The basic data model is:

User
    has many card_sets

CardSet
    belongs to user
    has many cards
    has many labels

Card
    belongs to card_set
    has and belongs to many labels

Label
    belongs to card_set
    has and belongs to many cards

Some Current Issues

  • When create a new card set, how do you transition there immediately?
  • Can't seem to get reference to card when trying to add card to commit in App.CardsTableRowController enterEditMode()

Helping Out

...is welcomed!

Other Ember.js/Rails Resources

Demos and Learning Resources

The official guides:

Peepcode

I found both of the following demos helpful (and new ones appearing all the time):

Add-ons

Think HTML/Handlebars too verbose? Alex Matchneer is developing a Slim-like templating solution:

###License Copyright 2013 Michael Madrid under the MIT License

About

A flash card site written in rails/ember.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published