• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Getting started with sinatra
 

Getting started with sinatra

on

  • 2,598 views

Quick run through of getting started with the Sinatra micro web framework on Windows.

Quick run through of getting started with the Sinatra micro web framework on Windows.

Statistics

Views

Total Views
2,598
Views on SlideShare
2,597
Embed Views
1

Actions

Likes
0
Downloads
9
Comments
1

1 Embed 1

http://coderwall.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Thanks!
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Getting started with sinatra Getting started with sinatra Presentation Transcript

    • Getting started with Sinatra on Windows
    • Install RubyStack• Go to http://bitnami.org/stack/rubystack/• Click on the “Installer” button• Once the installer has finished downloading, run it.
    • Install Sinatra• Open the Start Menu and find the RubyStack console – You can do this by typing “Use Bitnami RubyStack” in the search box on the start menu. – From the RubyStack console, type the following: • gem install sinatra • When I did this, it barfed on the docs for Sinatra. The important thing to see is “2 gems installed successfully”
    • Create the Ruby file• From the RubyStack console, change directories to someplace you’ll remember – i.e. cd Users[your user name]Desktop• Create the file – touch sinatra-demo.rb
    • Edit the file• notepad sinatra-demo.rb• Enter the following text (then save the file): require ‘rubygems’ require ‘sinatra’ get ‘/’ do “This is the sinatra demo page!” end
    • Start Sinatra• From the RubyStack console: – ruby sinatra-demo.rb – Note the port number Sinatra starts under • Probably 4,5,6,7 (har, har)
    • Open local host• Open a browser window, then type – localhost: + port number • i.e. localhost:4567• You should see:• “This is the sinatra demo page!”