- Create a basic Sinatra application.
- Write a
get
method. - Render a string from that
get
method.
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.
View Sinatra Hello World Basics on Learn.co and start learning to code for free.