Git Product home page Git Product logo

happitailsminiproject's Introduction

#Title: HappiTails

###Type:

  • Mini-Project

###Prerequisites:

  • Ruby
    • Objects/Classes
    • Initializer
    • Accessors
    • gets.chomp
    • Multi-file projects ('require')

###Objectives:

  • Practice creating objects

###Activity:

  • Work on this lab in pairs
  • There is a spec folder containing tests on each model.
    • Make sure these tests pass before moving on.

###Explanation

  • You are the manager at HappiTails animal shelter. You need to manage your shelter by storing and manipulating information about clients and animals.
  • Make git commits as you finish each phase, so you can see the history

###Starter Code

  • You are given some code and and files to get yourself started
    • main.rb
      • This is the file you will use to run your program with ruby main.rb
      • This is the file that will be responsible for prompting users, and taking input
    • data.rb
      • You do not need to write or change any code in this file but you may want to look at it
      • Once you have created your classes this file will seed your program with data
    • animal.rb, client.rb, shelter.rb
      • These files are for your classes
      • animal.rb has some code started for you, but the other classes you'll have to create from scratch
    • spec
      • These are your rspec tests to help ensure your program is working properly
      • To run all your specs run rspec in your teminal
      • To run a specific set of specs run rspec spec/<filename> in your terminal, i.e. rspec spec/animal_spec.rb

###Specification: #####Objects:

  • Relationships:
    • A client should be able to adopt an animal.
    • A client should be able to put an animal up for adoption

#####Phase 3

  • Create a basic menu
    • At start, the user is prompted with a menu of options
    • After selecting from the menu the task the user is prompted through the entire process
    • Start with the following options
      • display all animals
      • display all clients
      • create an animal
      • create a client
    • The code for these features will go in your main.rb, and function.rb files

#####Phase 4

  • Expand your menu
    • Add the following features
      • adopt an animal
      • return an animal
    • Hint: when an animal is adopted or returned it will be moved between the client and shelter object

happitailsminiproject's People

Contributors

jadeapplegate avatar jackieiscool avatar

Watchers

James Cloos avatar  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.