Giter Site home page Giter Site logo

ember-sample2's Introduction

Very Simple CRUD Using Ember.js

This application is just a personal exercise to get familiar with ember.js and it's based on the Ember Application Structure guide on the ember.js site.

The application shows a table of Post objects which you can edit and show. It's also possible to create new Post objects. Every Post contain 0 or more Comments and Backtracks which are visible on the show page to play with ember's nested routes.

The application uses a Rails 3.2.x back-end and contains a generator to get you up and running.

I'm using Ember Data to retrieve data from the server.

Getting Started

  1. Clone this repo

git clone https://github.com/bazzel/ember-sample2.git very_simple_crud 2. Navigate to the application directory

cd very_simple_crud 3. Install the gems

bundle install 4. Create the (SQLite) database

rake db:create 5. Run the migrations

rake db:migrate 6. Populate the database

rake db:seed 7. Start the server

rails s 8. Open a browser and navigate to http://localhost:3000

More info

Location of JS files

Although the application uses the ember-rails gem, it only uses it for pre-compiling the handlebars templates. The required JS files for ember and ember data are built manually and located in vendor/assets/javascript. Application logic is located in app/assets/javascripts (this is the suggested location according to Rails' assets pipeline).

What's included

  • ember.js router and some nested routes
  • transaction usage (commit and rollback)

What's not included

  • Tests (it's only a prototype :))
  • Client side validation
  • Flash notification
  • ...

ember-sample2's People

Contributors

maji-mobile avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ember-sample2's Issues

Add Ember.Select example

I've learned a ton reading your Ember implementation and regularly recommend it on #emberjs. Thank you!

If you have time, I'd love to see an implementation of Em.Select, particularly pulling data from another model.

Thanks again,

/g

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.