niccokunzmann / rails-books-library

Small book management tool written to get familiar with rails and data migration #BP2012H1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rails-books-library

Small book management tool written to get familiar with rails #BP2012H1

Useful links:

I think we should use this readme or the wiki to gather our insights.

Steps so far

Note 1: These steps have already been done in the repository.

Note 2: If you are surprised by the amount of code: I haven't written a single line of code so far, everything was created by rails and its generators.

  1. rails new rails-books-library generated the skeleton of the rails app with all necessary folders
  2. Do this locally: create your own SQLite database with rake db:create (see Getting Started above)
  3. rails generate controller home index to generate the first controller
  4. rails generate scaffold Book title:string author:string to generate a model Book with a title and an author
  5. rails generate model Comment commenter:string body:text post:references and then followed the steps in step 7
  6. Do this locally: run rake db:migrate to migrate the database

What to do

###Summary of the tasks the app is supposed to support:

  • enter books
  • lend them to students

###Requirements

  • using a relation database for persistence
  • run on heroku.com

###Questions

  • How is persistence achieved in rails?
  • Migrations-DSL von Rails?
  • Which assumptions does the framework make?
  • Which assumptions does heroku make?

About

Small book management tool written to get familiar with rails and data migration #BP2012H1


Languages

Language:Ruby 96.5%Language:CoffeeScript 1.8%Language:JavaScript 1.7%