Skip to content

HazelGrant/learn-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

for a CodeNewbie Learn With Me session about Rails APIs using this blog post: https://codelation.com/blog/rails-restful-api-just-add-water

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published