hliutongco / sinatra-hello-world-basics-nyc-web-031218

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sinatra Hello World Basics

Objectives

  1. Create a basic Sinatra application.
  2. Write a get method.
  3. Render a string from that get method.

Instructions

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.

  1. Write a get method in the app.rb file to respond to the root URL '/'.
  2. The get route should respond with the string "Hello, World!".

You can run learn to see error messages.

Resources

Sinatra Basics

View Sinatra Hello World Basics on Learn.co and start learning to code for free.

About

License:Other


Languages

Language:Ruby 100.0%