# Opal & Sprockets Opal comes with built-in sprockets support, and provides a simple `Opal::Server` class to make it easy to get a rack server up and running for trying out opal. This server will automatically recompile ruby sources when they change, meaning you just need to refresh your page to autorun. ## Getting setup Add `opal` to a `Gemfile`: ```ruby #Gemfile source 'https://rubygems.org' gem 'opal', '>= 0.6.0' ``` And install with `bundle install`. We need a directory to hold our opal code, so create `app/` and add a simple demo script to `app/application.rb`: ```ruby # app/application.rb require 'opal' puts "hello world" ``` Finally, we need a html page to run, so create `index.html`: ```html