Coder Social home page Coder Social logo

purple-silence-9128's Introduction

DPL

Fork this repository and clone your newly created repository. At the end of the challenge, push your code to your repository and create a pull request to this repository.

Be sure to read all user stories BEFORE beginning your work


Setup

  • Fork this repository
  • Clone down your forked repository
  • Perform the usual setup steps after cloning a Rails application:
    • bundle install
    • rails db:{create,migrate,seed}

Submission

When you have completed this challenge, submit by creating a Pull Request back to the turingschool-examples repo. Include the following information:

  • Your Name
  • A reflection on how you felt you did with this challenge and what story you got through

Requirements

  • TDD all new work
  • any model METHODS you write must be fully tested.
  • any model RELATIONSHIPS you create must be fully tested.

Not Required

  • No visual styling is required or expected
  • No model testing for validations are required

Challenge Description

DPL is an app that tracks Libraries, the books that they have, and the authors of those books. Libraries have many books. Books belong to a Library. Books have many Authors and Authors have many Books. Authors should have a name and birth year.

Two migrations have been made for you. The one to many relationship has been set up. You will need to create migrations for the many to many relationship between books and authors. You do not need to do model testing for validations, just make sure you test any relationships and model methods that you create.

(Note: The plural of Library is Libraries.)

User Stories

Story 1 of 3
As a visitor, when I visit a book's show page
I see the book's name and genre
And I see a list of authors for that book.
And I see the name of the Library it belongs to
Story 2 of 3
As a visitor
when I visit a book's show page
I see the average age of the authors for that book
Story 3 of 3
As a visitor
When I visit a Library's show page
I see the name of that library
and i see a link to view all of the authors that have written books that the library has
When I click on that link
I am taken to a Library's authors index page 
and I can see a unique list of names of all the authors that this library has
Extension
As a visitor
When I visit a library's show page
I can see the three most popular authors that are available in the library
(Popularity is based on how many books the author has in the library)

purple-silence-9128's People

Contributors

johnny-bowman avatar mikedao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.