GithubHelp home page GithubHelp logo

ankitt26 / catalog-of-my-things Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 163 KB

In this Project we will create a console app that will help you to keep a record of different types of things you own: books, music albums, movies, and games.

License: MIT License

Ruby 100.00%

catalog-of-my-things's Introduction

๐Ÿ“— Table of Contents

๐Ÿ“– [Catalog of my things]

[Catalog of my things] is a console app where user can add and retrieve items in catalog: books, music albums, movies, and games. The data will be stored in JSON files where they can be retrieved.

๐Ÿ›  Built With

Tech Stack

Ruby

Key Features

  • [Item Management]
  • [Data Persistence]
  • [User-Friendly Interface]

(back to top)

๐Ÿ“ฝ๏ธ Presentation

๐Ÿ“ท see video

(back to top)

๐Ÿ’ป Getting Started

To get a local copy up and running, follow these steps.

Prerequisites

In order to run this project you need:

  • ruby
  • Text editor like VSCode

Setup

Clone this repository to your desired folder:

Example commands:

  cd my-folder
  git clone [email protected]:ankitt26/Catalog-of-my-things.git

Install

Install this project with:

  cd my-project
  bundle install

Usage

To run the project, execute the following command:

Example command:

  ruby main.rb

Run tests

To run tests, run the following command:

Example command:

  rspec spec

(back to top)

๐Ÿ‘ฅ Authors

๐Ÿ‘ค Falako Omotoyosi

๐Ÿ‘ค Charles Andrews

๐Ÿ‘ค Ankit Kushwaha

(back to top)

๐Ÿ”ญ Future Features

  • [Use database to store data]

(back to top)

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

โญ๏ธ Show your support

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

(back to top)

๐Ÿ™ Acknowledgments

(back to top)

๐Ÿ“ License

This project is MIT licensed.

(back to top)

catalog-of-my-things's People

Contributors

ankitt26 avatar forloop94 avatar toyman640 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

catalog-of-my-things's Issues

[1pt] Create a main.rb file - group task

  • 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.

[1pt] Implement methods: add_item method - Student A

  • 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)

[1pt] Implement methods: move_to_archive() - group task

  • 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

[2pt] Create a schema.sql file. - student A

  • 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

[1pt]Create Item class in a separate .rb file. - 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.

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.