This is a custom Rails 5 exercise application for my Ruby on Rails trainings. It implements a simple movie database with three resources:
- Movies (eg. "Star Wars")
- Actors (eg. "Harrison Ford")
- Roles, linking movies and actors together (eg. "Han Solo")
It is intended to be a base application to expand and experiment on, making use of Ruby on Rails' most important features and including some simple specs as a starting point.
- Install an up-to-date version of Ruby (minimum 2.2).
- Install Bundler:
gem install bundler
- Clone this repository:
git clone https://github.com/mansworkshops/moviedb2017.git
- Execute the
bin/setup
script.
If you plan on sharing the changes you're going to make to this application, please consider forking this repository into your own GitHub account.
- The Ruby on Rails Guides are full of useful information on building Ruby on Rails apps. Use these extensively!
- The Ruby on Rails API Reference documents each and every class and method available in Ruby on Rails.
- The JBuilder gem is used to generate JSON responses.
- For tests, this app uses RSpec together with FactoryGirl (also see its GETTING_STARTED.md) and FFaker.
- Capybara is a framework for acceptance/feature/integration specs. This app uses it in conjunction with Poltergeist and DatabaseCleaner.
I offer Ruby on Rails training and consulting in Germany and across Europe. If you're interested in learning Rails or getting your development team up to speed, please don't hesitate to email me at hendrik@mans.de.
- Hendrik Mans