Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 4, 2020. It is now read-only.

HackerYou/broken-sinatra

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

broken-sinatra

A purposefully broken Sinatra app to aid in debugging errors

Welcome to this broken app. As you complete each answer, commit your changes to Git. If you don't finish the bonus questions, 4 and 5 that's fine, just make sure you complete the final steps.

To start, run the ruby file included. Happy debugging!

  1. This app doesn't start. What do you need to do to fix it?
  • Commit your change
  1. Make a GET request to /now. What's missing from here? Fix it.
  1. Make a GET request to /hi.
  • What happened?
  • How do you know where to fix the issue?
  • What do you need to add to fix this?
  • How can you prevent this from happening again?
  • Commit your change
  1. [BONUS] POST to /users with the following data:
  • name=HackerYou, course=IntroToRails
  • [HINT] Use curl in your BASH console
  1. [DOUBLE BONUS] POST to /books with the followin JSON data:
  • {"isbn": "abcdefg", "author": "Brad Robertson"}
  • [HINT] curl is once again your friend, but your data will be a bit different

Final Steps

  1. Try pushing your completed app back to Github
  • What happens?
  • Why do you think this doesn't work?
  1. Think of a way that you might be able to push this to Github, but not on the HackerYou account.

Answers can be found in the answers branch

About

A purposefully broken Sinatra app to aid in debugging errors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.