Sinatra Hello World Basics (lab)
Objectives
Create a basic Sinatra application.
Write a
getmethod.Render a string from that
getmethod.
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
getmethod in theapp.rbfile to respond to the root URL '/'.The
getroute 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