- Create a basic Sinatra application.
- Write a
getmethod. - Render a string from that
getmethod.
Fork and clone this repository and run bundle install to get started!
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.
View Sinatra Hello World Basics on Learn.co and start learning to code for free.