Sinatra Hello World Basics (lab)
Objectives
Create a basic Sinatra application.
Write a
get
method.Render a string from that
get
method.
Instructions
Fork and clone this repository and run bundle install
to get started!
On your local environment (not in the IDE), run shotgun
to start a local server so that you can test your app in your browser. Shotgun default is using port 9393, you should be able to visit the following url http://localhost:9393
.
Write a
get
method in theapp.rb
file to respond to the root URL '/'.The
get
route should respond with the string"Hello, World!"
.
You can run learn
to see error messages.
Resources
Clone this lab here : https://github.com/learn-co-curriculum/sinatra-hello-world-basics
Last updated