Goal: Practice creating class methods and class variables. Use them in your Sinatra apps, and update the server with
POST requests through forms. You should also incorporate dynamic routing so users can look at a detail page for an item on the list. Add integration testing for each path through your application that a user can take.
save_and_open_page? How can we use it to help debug our applications?
Follow along with the homework lessons and add CRUD functionality for
Songs. Consider adding
Song properties such as
songwriter and so on. Once you've completed all CRUD, add integration testing to your application. Feel free to style and continue building out the application to add any functionality that interests you.
Create a website for a local festival in the woods. A user should be able to create, read, update and delete a
Stage and should also be able to create, read, update and delete an
Artists belong to
Stages. For the purposes of this project, an
Artist can only perform on a single
Stage — otherwise, we'd need to use a many-to-many relationship, which is much more complicated.
Start with unit tests and get all tests passing before starting on integration testing and Sinatra. Make sure integration tests cover all the ways a user may navigate through your pages.
Create a Sinatra application with CRUD functionality where users can traverse a maze. Each "room" of the maze should have a description and one or more ways to move to another room. For instance, if the room is a dead end, then a user should be able to return to the previous room. There could be a winning condition if the user successfully traverses the maze.
Lesson 30 of 37
Last updated August 7, 2022