GithubHelp home page GithubHelp logo

balinterdi / rarwe-demo Goto Github PK

View Code? Open in Web Editor NEW
179.0 19.0 59.0 1.16 MB

An example Ember.js app, a demo version of Rock and Roll with Ember.js

Home Page: http://demo.rockandrollwithemberjs.com

License: GNU General Public License v2.0

Ruby 1.30% CSS 5.62% JavaScript 34.54% HTML 58.54%

rarwe-demo's Introduction

Build Status Code Climate

Rock & Roll with Ember.js - Demo version

This app is a smaller version of the app that is built in my Rock and Roll with Ember.js book.

It demoes a simple music catalogue where you can create bands and songs, and sort and rate the latter. Please don't try to use it to actually create an inventory of your music. All the data is stored in memory only and destroyed upon refresh.

You can check out the running app here.

Tech specs

The app aims to be running on a relatively recent, stable version of Ember.js (now that the LTS versions are announced, it will probably run on the latest LTS version) and contain several of the features the full app has.

  • It uses a relatively recent version of Ember Data.
  • There is no backend. The app uses the fantastic ember-cli-mirage addon to create some seed data and to mock out server responses. All data is ephemeral and destroyed on reload.
  • It strives to show idiomatic Ember and use ES2015 features, like destructuring and let.
  • It is deployed on Heroku.

Found a bug?

That's great, please submit a pull request.

Licensing

I would like you to be able to do anything you wish with this code as long as you don't sell it, or anything that uses it (e.g a screencast). To that end, I chose the GPL v2 License which you find here in the repository and which is nicely summarized on choosealicense.com.

Feel free to fork it, play with it, share it with friends or use some code snippets in a presentation while you keep the license and the copyright notice in the repository.

Copyright (c) 2016 Balint Erdi

rarwe-demo's People

Contributors

asvny avatar balinterdi avatar codyjroberts avatar jeffward01 avatar keydunov 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rarwe-demo's Issues

Missing tag in Router Chapter

I noticed a missing

<em>
<!-- app/templates/bands.hbs -->
(...)
{{#each model as |band|}}
  <li class="list-group-item">{{band.name}}</em>
{{/each}}
(...)

tag

page 63 of the Router chapter in the ebook

Suggestion for Template Chapter

In the Templating chapter
under the heading "auto-updating templates"

It says to put this code after "Song" is created.

window.songs = songs;

var alwaysWaiting = Song.create({
  title: 'Always Waiting',
  band: 'Kaya Project',
  rating: 5
});

window.newSong = alwaysWaiting;

and then run this in the console after the page reloads

songs.pushObject(newSong);

"Song" is a empty Ember object after it is immediately created.
The code needs to put in after instantiation of the "Song" collection "songs" that is referenced in the code snippet.

"pushObjects" does not understand what variable "songs" is otherwise. Some extra clarity may save someone some time.

project doesn't run with ember v1.13.1

The project doesn't seem to run with ember v1.13.1. All I did was clone the project and try to run ember server.

RICKYNELSON ➜  dev  git clone https://github.com/balinterdi/rock-and-roll.git
Cloning into 'rock-and-roll'...
remote: Counting objects: 600, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 600 (delta 2), reused 0 (delta 0), pack-reused 594
Receiving objects: 100% (600/600), 977.63 KiB | 0 bytes/s, done.
Resolving deltas: 100% (264/264), done.
Checking connectivity... done.
RICKYNELSON ➜  dev  cd rock-and-roll
RICKYNELSON ➜  rock-and-roll git:(master) ember server
Arguments to path.join must be strings
TypeError: Arguments to path.join must be strings
    at Object.posix.join (path.js:488:13)
    at AddonDiscovery.<anonymous> (/usr/local/lib/node_modules/ember-cli/lib/models/addon-discovery.js:107:24)
    at Array.map (native)
    at AddonDiscovery.discoverFromDependencies (/usr/local/lib/node_modules/ember-cli/lib/models/addon-discovery.js:97:68)
    at AddonDiscovery.discoverProjectAddons (/usr/local/lib/node_modules/ember-cli/lib/models/addon-discovery.js:45:31)
    at Project.discoverAddons (/usr/local/lib/node_modules/ember-cli/lib/models/project.js:317:40)
    at Project.initializeAddons (/usr/local/lib/node_modules/ember-cli/lib/models/project.js:336:8)
    at Project.eachAddonCommand (/usr/local/lib/node_modules/ember-cli/lib/models/project.js:389:10)
    at module.exports (/usr/local/lib/node_modules/ember-cli/lib/cli/lookup-command.js:34:13)
    at CLI.<anonymous> (/usr/local/lib/node_modules/ember-cli/lib/cli/cli.js:35:26)
RICKYNELSON ➜  dev  cd ..
RICKYNELSON ➜  dev  ember --version
version: 1.13.1
node: 0.12.5
npm: 2.12.1

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.