Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 1.33 KB

README.md

File metadata and controls

34 lines (20 loc) · 1.33 KB

Learn With Me - API

This application was created for a Learn With Me session at CodeNewbie. This session is dedicated to learning the basics of building an API for a Ruby on Rails application, and we will be following along with this blog post from The Codelation Blog in order to construct a basic API.

About the Application

rails -v: 4.1.4
ruby -v: 2.0.0p481

This application has two models with corresponding RESTful controllers & pages - Artist and Album. Artist has_many albums and Album belongs_to artist. An Artist has & must have a name. An Album has & must have both a title and an artist_id. Models and controllers are tested using ActiveSupport::TestCase and fixtures. The layouts are built using the twitter-bootstrap-rails gem.

We will be working on the branch 'build-api'.

Get it up and running

If you would like to push the code to your own GitHub account

  • Fork the GitHub repo & clone to your machine

Else, you can just:

  • Clone the repo

Make sure nothing is broken

  • cd into learn-api
  • bundle install
  • run tests with bundle exec rake

If anything goes wrong

  • Feel free to send me an email:
    • wendybeth010 [at] gmail [dot] com
  • Or submit an issue