Skip to content

turingschool-examples/set-list-7

Repository files navigation

Set List Tutorial

This repository serves as an in-class project for Turing's Mod 2 BE program. Through working on this tutorial, students will gain an understanding of and practice the following topics (among others):

  • Model testing
  • Migrations
  • Feature testing
  • MVC
  • ActiveRecord & SQL
  • Forms

Setup

Clone (you don't need to fork) this repo to your local. Then, run the following commands in Terminal:

bundle install
rails db:{drop,create,migrate,seed}

You should then be able to access the databases called set_list_development and set_list_test.

How to Use

This application starts with schema and corresponding tests for Artists and Songs. Throughout classes in mod 2, students will be asked to work on adding various features to this application. It is recommended that students use the main branch of this repo, and add to it on their own machines. There is no need to submit any pull requests to the original repo, as this is a practice application.

Students can also check out the branches in this repo to visit the code at different points in time. The following table lists the classes in mod 2, the branch for where the class starts, and the branch with the completed code from the class.

Warning

Note: we don't recommend forking this repo, as there are many branches that you'll lose access to if you fork. Since this is a tutorial, you can reference the many branches in this repo for the class you're currently working on. Forking will not bring these branches with your forked copy.

Also, this tutorial is most useful going class-by-class, not necessarily done in addition to any intermission work. If you have context/prior knowleddge for the topics explored in this repository, you can use it to practice those topics. Generally, we advise students to wait until the topic comes up in a project or class to explore the branches of this repo.

Branch Directory

Class Starting Branch Completed Branch
Songs Index video none songs_index
Songs Show video songs-index songs-show
ActiveRecord Associations (homework video) songs-show artist-songs-index
Feature Testing feature-testing-practice feature-testing-complete
ActiveRecord Associations (live class) associations-practice associations-practice-solutions
SQL and ActiveRecord sql-ar-setup
Forms (homework video) artist-songs-index artist-new
Class vs Instance Methods class-vs-instance-setup class-vs-instance-solutions
Many to Many many-to-many-setup many-to-many-complete
Joins - Homework joins-homework joins-homework-solutions
Joins many-to-many-complete
Data Validations generic-start
Sad Path Testing & Flash Messages sad-path-testing sad-path-complete
Partials generic-start partials-solutions
Advanced Routing advanced-routing advanced-routing-solutions
Grouping & Aggregating advanced-routing (no completed branch)
Binding Models to Forms advanced-routing-complete form-with-complete

Note: This table is always being updated. Please submit a pull request if something needs changed!