GithubHelp home page GithubHelp logo

hammas-saleem / things_records Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 55 KB

This project is made as part of the Microverse curriculum for module 4- Ruby and Databases. "Catalog of my things" is a simple console app that allows users to manage collections of the things: Books, Music Albums, Movies, and Games.

Ruby 93.44% SQL 6.56%
gem gemfile rspec rspec-testing ruby

things_records's Introduction

Things_Records

This project is made as part of the Microverse curriculum for module 4- Ruby and Databases. "Catalog of my things" is a simple console app that allows users to manage collections of the things: Books, Music Albums, Movies, and Games.

Link

Loom Video

Built With

  • Ruby
  • PostgreSQL

Getting Started

To get a local copy of this project:

Clone this repository or download the Zip folder:

git clone https://github.com/HAMMAS-SALEEM/Things_Records.git

To get started, In the root directory run:

gem install bundler

Then run:

bundle install
add other gems

run ruby app in the Command Line:

ruby main.rb

Run tests

  • Open the terminal and run rspec spec spec/filename.rb

To track linter errors locally follow these steps:

Track Ruby linter errors run:

rubocop

To auto-correct Rubocop offenses run:

rubocop --auto-correct-all | rubocop -A

Authors

๐Ÿ‘ค Farouq Daif

๐Ÿ‘ค Lichapa Mphatso

๐Ÿ‘ค Hammas Bin Saleem

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a โญ๏ธ if you like this project!

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

๐Ÿ“ License

This project is MIT licensed.

things_records's People

Contributors

farouqdaif1 avatar hammas-saleem avatar lichapa avatar

Stargazers

 avatar

Watchers

 avatar

things_records's Issues

[1pt] Member1: Add method can_be_achieved?

can_be_archived?() in the Book class

  1. should override the method from the parent class
  2. should return true if the parent's method returns true OR if 3)cover_state equals "bad"
  3. otherwise, it should return false

[2pt] Member2: Create a schema.sql file

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

[2pt] Member3: Create a schema.sql file

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

[1pt]Member3: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)

[1pt] Member2: add_item method in the Genre class

add_item method in the Genre class

  1. should take an instance of the Item class as an input
  2. should add the input item to the collection of items
  3. should add self as a property of the item object (by using
    the correct setter from the item object)

[2pt] Member1: Create a schema.sql file

Create a schema.sql file with tables that will be analogical to the structure of the classes that you created:

  1. books table (add all properties and associations from the
    parent Item class as table columns)

  2. labels table

[1pt] Member1: Add an add_item method in the Label class

Add an add_item method in the Label class

  1. should take an instance of the Item class as an input
  2. should add the input item to the collection of items
  3. should add self as a property of the item object (by using
    the correct setter from the item object)

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.