{"id":15736313,"url":"https://github.com/jacksongl/ruby-tutorial","last_synced_at":"2026-01-08T10:45:45.567Z","repository":{"id":73975873,"uuid":"51034023","full_name":"JacksonGL/Ruby-Tutorial","owner":"JacksonGL","description":"Tutorial for CS169 Discussion Sections","archived":false,"fork":false,"pushed_at":"2016-09-04T21:49:08.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T08:45:31.574Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JacksonGL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-03T22:05:49.000Z","updated_at":"2016-02-03T22:05:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"e17380e9-ddae-4a83-8bf8-621447ff1102","html_url":"https://github.com/JacksonGL/Ruby-Tutorial","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.5,"last_synced_commit":"313d959ab7093c58ebc81701a09a0d8c01fcff9b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacksonGL%2FRuby-Tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacksonGL%2FRuby-Tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacksonGL%2FRuby-Tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacksonGL%2FRuby-Tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JacksonGL","download_url":"https://codeload.github.com/JacksonGL/Ruby-Tutorial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413242,"owners_count":20773054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-04T01:21:53.369Z","updated_at":"2026-01-08T10:45:45.540Z","avatar_url":"https://github.com/JacksonGL.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# CS169 Week3 Section\nA basic tutorial of Sinatra.\n\n### Requirements\nThis tutorial assumes that you are using the Cloud9 IDE.\n\nFind a partner and begin typing the following exercises. You should alternate who types and who explains the output.\n\n#### Install the Sinatra Gem\nType the following command in the C9 terminal:\n```\ngem install sinatra\n```\n#### Write a Hello World Sinatra App\nCreate an empty Ruby workspace. In the root directory of your workspace, create a file ```app.rb```. Type the following content in the file:\n```ruby\nrequire \"sinatra\"\n\nget \"/\" do\n    \"Hello, world!\"\nend\n```\n#### Start the App\nType the following command in C9 terminal:  \n**Note:** Type the following content literally, do not replace anything.\n```\nruby app.rb -p $PORT -o $IP\n```\n#### Try Your App\nIn your browser, type the following URL to try your first Sinatra app:\n```\nhttp://\u003cproject-name\u003e-\u003cusername\u003e.c9users.io\n```\nReplace ```\u003cproject-name\u003e``` and ```\u003cusername\u003e``` with your C9 root directory name and your C9 username respectively. For example, my url is:  ```https://test-sinatra-jacksongl.c9users.io/```.\n\n#### Exercise:\nAdd another page to your site with URL ```http://\u003cproject-name\u003e.\u003cusername\u003e.c9.io/about```.\nThe page should display content: ```My name is \u003cyour name\u003e.```\n\nGo the [next page](RESTFul-1.md) of this tutorial.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksongl%2Fruby-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacksongl%2Fruby-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacksongl%2Fruby-tutorial/lists"}