Git Product home page Git Product logo

rock-and-roll-api's Introduction

API for the Rock & Roll Ember.js application

A simple REST API written for the Ember.js application I'm building in my “Build an Ember app” screencast series.

Usage

Run locally

  1. Run bundle exec rake db:create_tables to create the tables in the (sqlite) database.

  2. Run bundle exec rake db:seed to insert a few artists and songs in the database.

  3. Run bundle exec rerun 'DATABASE_URL=postgres://localhost/rock-and-roll rackup in the root folder of the application (where DATABASE_URL points to the database you want to connect to). That will spin up the app on port 9292 that you can check by issuing a request to http://localhost:9292. You should see something like:

    {"name":"Rock & Roll API","version":"0.1"}

If you wish to run it on another port, just append -p <port> to the above command.

Don't have ruby or don't want to bother?

No problem, the API is available on Heroku. Just direct your client application to that URL. The "official" client is set up to do that, so once you clone it, it should just work.

The database will be reset (and reseeded with a handful of artists and songs) each night, at 01:00 UTC, so you have a fresh database to start the day with.

The source code for the client-side application can be found here.

Want more Ember stuff?

You can sign up to the Ember.js mailing list to see the screencast series in which I build the app step by step. You'll also get researched articles, best practice tips and smaller snacks each week.

Copyright (c) 2013-2014 Balint Erdi

rock-and-roll-api's People

Contributors

balinterdi avatar

Stargazers

Victor Vinogradov avatar Dave Kerr avatar rahulan sritharan avatar tobynet avatar Zoltan avatar Riko Tertsch avatar

Watchers

James Cloos avatar  avatar  avatar

rock-and-roll-api's Issues

missing db folder

Looks like db folder is missing in git along with tables.rb and seed.rb

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.