Giter Site home page Giter Site logo

piercel2022 / catalog Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 66 KB

In this project, we created a console app that will help you to keep a record of different types of things you own: books, music albums, movies, and games. Everything will be based on the UML class diagram. The data will be stored in JSON files but a database with tables is prepare to structure the program.

Ruby 100.00%

catalog's Introduction

github-Cover- Image

Hi ๐Ÿ‘‹, I'm Pierre Celestin

A passionate Full-stack developer from France

piercel2022

  • ๐Ÿ”ญ Iโ€™m currently working on ** side projects**

  • ๐ŸŒฑ Iโ€™m especially curious about the REACT Library and the Ruby On Rails Framework

  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on open source projects

  • ๐Ÿ‘จโ€๐Ÿ’ป My portfolio is available

  • ๐Ÿ’ฌ Ask me about Full-stack Web development

  • ๐Ÿ“ซ How to reach me [email protected]

  • โšก Fun fact I am a football fan, and I can play too!

Connect with me:

pier_celestin https://www.linkedin.com/in/piercelestinmax/ https://stackoverflow.com/users/18248497/piercel-moussa https://www.hackerrank.com/piercel_coder201

Languages and Tools:

htlm5 css3 javascript bootstrap figma git jest linuxpostgresqlrails react redux ruby yarn rspec railsvscode

piercel2022

Pierre's GitHub stats

Synthwave

catalog's People

Contributors

29td avatar ishpaul777 avatar piercel2022 avatar pndungumaina avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

pndungumaina

catalog's Issues

Task 02 #2 Implement methods in Music Album class [5pts]

expected time - 2hr

  • Implement methods:
    • add_item method in the Genre class
      • should take an instance of the Item class as an input
      • should add the input item to the collection of items
      • should add self as a property of the item object (by using the correct setter from the item object)
    • can_be_archived?() in the MusicAlbum class
      • should override the method from the parent class
      • should return true if parent's method returns true AND if on_spotify equals true
      • otherwise, it should return false

Task 04 #4 Schema for Movies [3pts]

expected time - 1.5hr

  • Create a schema.sql file with tables that will be analogical to the structure of the classes that you created:
    • Movies table (add all properties and associations from the parent Item class as table columns)
    • sources table

Task 04 #1 Schema for Books [3pts]

expected time - 1.5hr

  • Create a schema.sql file with tables that will be analogical to the structure of the classes that you created:
    • books table (add all properties and associations from the parent Item class as table columns)
    • labels table

Task 02 #1 Implement methods in Book class [5pts]

expected time - 2hr

  • Implement methods:
    • add_item method in the Source class
      • should take an instance of the Item class as an input
      • should add the input item to the collection of items
      • should add self as a property of the item object (by using the correct setter from the item object)
  • can_be_archived?() in the Movie class
    • should override the method from the parent class
    • should return true if parent's method returns true OR if silent equals true
      otherwise, it should return false

task 03 #3 Test and data preservaton on Game class [5pts]

expected time - 3hr

  • Add unit tests for all implemented methods.
  • The following options should be available:
    • List of games
    • List all authors (e.g. 'Stephen King')
    • Add a game
  • All data should be preserved by saving collections in .json files.

Task-01 #1 Book class initialization [2pts]

Team member #1

  • Create a Book class in a separate .rb file.
  • Create a Label class with an association to the Item class (in a separate .rb file).
  • All Book class properties visible in the diagram should be defined and set up in the constructor method.
  • All Label class properties visible in the diagram should be defined and set up in the constructor method.

Task 02 #4 Implement methods in Movie class [5pts]

expected time - 2hr

  • Implement methods:
    • add_item method in the Label class
      • should take an instance of the Item class as an input
      • should add the input item to the collection of items
      • should add self as a property of the item object (by using the correct setter from the item object)
    • can_be_archived?() in the Book class
      • should override the method from the parent class
      • should return true if parent's method returns true OR if cover_state equals to "bad"
      • otherwise, it should return false

task 02 #3 Implement methods in Game class [5pts]

expected time - 2hr

  • Implement methods:
    • add_item method in the Author class
      • should take an instance of the Item class as an input
      • should add the input item to the collection of items
      • should add self as a property of the item object (by using the correct setter from the item object)
    • can_be_archived?() in the Game class
      • should override the method from the parent class
      • should return true if parent's method returns true AND if last_played_at is older than 2 years
      • otherwise, it should return false

Task 04 #3 Schema for Games [3pts]

expected time - 1.5hr

  • Create a schema.sql file with tables that will be analogical to the structure of the classes that you created:
    • games table (add all properties and associations from the parent Item class as table columns)
    • authors table

Task 03 #2 Test and data preservation on musicAlbum class [5pts]

expected time - 3hr

  • Add unit tests for all implemented methods.
  • The following options should be available:
    • List all music albums
    • List all genres (e.g 'Comedy', 'Thriller')
    • Add a music album
  • All data should be preserved by saving collections in .json files.

Task 04 #2 Schema for Albums [3pts]

expected time - 1.5hr

  • Create a schema.sql file with tables that will be analogical to the structure of the classes that you created:
    • music_albums table (add all properties and associations from the parent Item class as table columns)
    • genres table

Task 01 #2 MusicAlbum class initialization [2pts]

expected time - 1hr

  • Create MusicAlbum class in a separate .rb file.
  • Create Genre class with an association to the Item class (in a separate .rb file).
  • All MusicAlbum class properties visible in the diagram should be defined and set up in the constructor method.
  • All Genre class properties visible in the diagram should be defined and set up in the constructor method.

Task 02 #1 Implement methods in Book class [5pts]

expected time - 2hr

  • Implement methods:
    • add_item method in the Label class
      • should take an instance of the Item class as an input
      • should add the input item to the collection of items
      • should add self as a property of the item object (by using the correct setter from the item object)
    • can_be_archived?() in the Book class
      • should override the method from the parent class
      • should return true if parent's method returns true OR if cover_state equals to "bad"
      • otherwise, it should return false

Task 01 #3 Game class initialization [2pts]

expected time - 1hr

  • Create a Game class in a separate .rb file.
  • Create an Author class with an association to the Item class (in a separate .rb file).
  • All Game class properties visible in the diagram should be defined and set up in the constructor method.
  • All Author class properties visible in the diagram should be defined and set up in the constructor method.

task-03 #1 Test and data preservaton on book class [5pts]

expected time - 3hr

  • Add unit tests for all implemented methods.
  • The following options should be available:
    • List all books
    • List all labels (e.g. 'Gift', 'New')
    • Add a book
  • All data should be preserved by saving collections in .json files.

Task-01 #4 Movie class initialization [2pts]

  • Create a Movie class in a separate .rb file.
  • Create a Source class with an association to the Item class (in a separate .rb file).
  • All Movie class properties visible in the diagram should be defined and set up in the constructor method.
  • All Source class properties visible in the diagram should be defined and set up in the constructor method.

Group tasks

Group task

  • Create Item class in a separate .rb file.
  • All Item class properties visible in the diagram should be defined and set up in the constructor method. Exception: properties for the 1-to-many relationships should NOT be set in the constructor method. Instead, they should have a custom setter method created.
  • Add all methods visible in the diagram.
  • Implement methods:
    • can_be_archived?() in the Item class
      • should return true if published_date is older than 10 years
      • otherwise, it should return false
    • move_to_archive() in the Item class
      • should reuse can_be_archived?() method
      • should change the archived property to true if the result of the can_be_archived?() method is true
      • should do nothing if the result of the can_be_archived?() method is false
  • Create a main.rb file that will serve as your console app entry-point.
  • Implement startup actions:
    • Present the user with a list of options to perform.
    • Let users choose an option.
    • If needed, ask for parameters for the option.
    • Have a way to quit the app.

task-03 #4 Test and data preservaton on Movie class [5pts]

expected time - 3hr

  • Add unit tests for all implemented methods.
  • The following options should be available:
    • List all Movies
    • List all Sourcs (e.g. 'Gift', 'New')
    • Add a movie
  • All data should be preserved by saving collections in .json files.

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.