#!/usr/bin/env ruby require 'nitro' require 'basic' include Nitro # Because it's not synced by default on Windows STDERR.sync = true if not STDERR.sync # Assuming you set up a database with these values... db_config = { :store => 'mysql', :name => 'basic', :user => 'basic', :password => 'basic' } Og.setup(db_config) # Tell the AuthController which User class to create # on new-user registration. Auth::AuthController.user_class = Basic::User # Set up the dispatcher, including an AuthController # at /auth. Server.map = { '/' => Basic::BasicController, '/auth' => Basic::AuthController } # Run the example. Nitro.run()