Skip to content

turingschool-projects/laugh_tracks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laugh Tracks

This is your Week 1 Solo Project for Module 2 of the Backend program at Turing.

This project will allow you to apply the lessons you've learned this first week in an ongoing project. We encourage you to take chances, be risky, try new things.

The primary goals for this project:

  • creation of a basic web application
  • implementing basic MVC structure in your project
  • save and retrieve data from a database
  • learning how to test your code effectively at a Feature and a Model level
  • display content on a web page with some very basic styling

Fork this repository from Turing's account to your own account, and clone your new forked repository to your laptop.

Setup

Before you begin work, run the following commands:

bundle install
bundle update
rake db:create

Requirements

  • students must implement with Rails and PostgreSQL
  • all new code must be 100% tested
  • you do not need any additional gems beyond what has been provided
    • if you find a gem you want to use, please DM your instructors for permission before implementing them

User Stories

User Story 1

As a visitor
When I visit `/comedians`
Then I see a list of comedians with the following
information for each comedian:
  * Name
  * Age
  * City

- Data does not have to be accurate to real life - you can make this up, or grab the information from the internet.
- The city attribute can hold birthplace or current known hometown.
- For testing, you should ensure that the name, age and city only appear on a
  specific area of the page for that single comedian.
User Story 2

As a visitor
When I visit `/comedians`
Then I also see a list of each comedian's TV specials, including
  * Name of the special
  * Run Time of the special in minutes

- You may find this information on IMDB.com and other related sites.
- Your project does not need to include *every* special the comedian has ever made.
User Story 3

As a visitor
When I visit `/comedians`
I see a thumbnail image for each comedian

- Image locations (URLs) can be stored in the database as a string.
- Use the image URLs from IMDB or other online source for the special
- Use CSS styling to scale the image smaller if needed to fit on the page
User Story 4

As a visitor
When I visit `/comedians?age=34`
Then I see the list of comedians on the page only shows
comedians who match the age criteria.

- All other information on the page is still expected to be present
- Testing should check that excluded comedians do not show up.
User Story 5

As a visitor
When I visit `/comedians`
For each comedian, I see a count of their TV specials
User Story 6

As a visitor
When I visit `/comedians/new`
Then I see a form to input a new comedian into the database
Including fields for their name, age and city.
When the form is successfully submitted and saved,
Then I am redirected to `/comedians`
And I see the new comedian's data on the page.
User Story 7

As a visitor
When I visit `/comedians`
Then I see an area at the top of the page called 'Statistics'
In that 'Statistics' area, I see the following information:
- the average age of all comedians on the page (if the page is filtered for specific comedians, the statistics should reflect the new group)
- a unique list of cities for each comedian on the page

Averaging and uniqueness should be done in ActiveRecord NOT
using Ruby
User Story 8

As a visitor
When I visit `/comedians?age=34`
Then I see a list of all comedians with an age of 34
Just like a previous User Story, BUT all other statistics
information in the 'Statistics' area of the page should be limited
to reflect only the information about the comedians listed on
the page.

- Testing should ensure that calculated statistics are
  correct for a limited subset of data

Extensions

As a user, when I visit `/comedians`,
I see all previous information
And each comedian's name is a link to a page that only shows
that comedian's information and TV specials.

For example, comedian #4 in your database would have a page like
`/comedians/4`

- Testing should check that only this one comedian's information
  is on the page.
As a user, when I visit `/comedians`,
I see all previous information
And, in the statistics area:
- A total count of specials for all comedians on the page
- the average run length of every TV special on the page
As a user, when I visit `/comedians?sort=name`
Then I see all previous information, but all comedians are
sorted alphabetically by the name of the comedians.
As a user, when I visit `/comedians?sort=city`
Then I see all previous information, but all comedians are
sorted alphabetically by the name of their city.
As a user, when I visit `/comedians?sort=age`
Then I see all previous information, but all comedians are
sorted alphabetically by the age of the comedian.

Rubric

This project is not evaluated. HOWEVER, the following is an example rubric we might follow for this type of project:

1. Below Standard 2. Approaching Standard 3. Meets Standard 4. Above Standard
Feature Completeness - Fewer than 75% of stories are complete - 75% of user stories are complete, but not all of them are fully implemented - All user stories are complete All user stories are completed and additional extension work was attempted
MVC Responsibilities - Models, Views, and Controllers do not have clear responsibilities EX. Views are making calls to the model or database, Controllers are handling calculations or making database calls Views contain logic that makes significant calls to the database OR Controllers are handling calculations OR Models process data inefficiently and is not passing responsibility to database - Views only contain .each calls, branch logic, and formatted CSS - Controllers push almost all the work to the Models for reading/writing data to the database - Models handle calculations and interactions with the database - Views only display data and do not make additional calls to the database; they may include branch logic - Controllers request all data from Models excepts .all, .find, .create, .delete methods - Models read/write all other data using branch logic of smaller methods
ActiveRecord - No ActiveRecord used - Using Ruby enumerables where ActiveRecord could be used mixed with some ActiveRecord - Using ActiveRecord to handle calculations and interactions to the database correctly - Using most efficient ActiveRecord queries
Testing - Below 75% coverage - Testing coverage is between 75-98% - Models tests are incomplete - Hardcoding values for expectations - Poorly written - 98% of better test coverage for feature tests - 100% for model tests - Using variable as opposed to hard coding values - Use of within blocks for targeted feature test - Robustly written tests - Clear TDD - Test Files extremely organized - Utilize before(:each) blocks for test setup - 100% coverage for features and models
Usability/Styling - Little or no Styling - User workflow is problematic (must type urls) - Styling is incomplete - Layout does not follow good HTML patterns - Incomplete Navigation - Purposeful styling pattern (complementary color choices, intentional layout of HTML - Links/Buttons to reach all ares of the site -Extremely well styled and purposeful layout(production ready) - Excellent color scheme and font usage(not default fonts) - Easy to use and follow application flow (does not have to search for links or buttons on the page) - Utilizes additional tooling(ex. SCSS)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published