https://github.com/existenzial/catdog
a fun little Rails app to predict a person's preference for cats or dogs based on their height and weight
https://github.com/existenzial/catdog
Last synced: about 2 months ago
JSON representation
a fun little Rails app to predict a person's preference for cats or dogs based on their height and weight
- Host: GitHub
- URL: https://github.com/existenzial/catdog
- Owner: existenzial
- Created: 2016-09-05T05:09:04.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-14T01:24:55.000Z (over 9 years ago)
- Last Synced: 2025-01-17T10:44:20.914Z (over 1 year ago)
- Language: Ruby
- Size: 188 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CatDog
[](https://codeclimate.com/github/existenzial/CatDog)

a fun little Rails app to predict whether a person prefers dogs or cats based on their height and weight
* [Dependencies](#dependencies)
* [Installation](#installation)
* [Test Suite](#testing)
* [Deployment](#deployment)
* ```Ruby 2.3.1```
* ```Rails 5.0.0.1```
## Installing CatDog
To **install** the app:
```bash
# Clone down the necessary files:
git clone https://github.com/existenzial/CatDog.git
# Navigate to the newly cloned directory:
cd CatDog
# Install the dependencies
bundle install
```
## Running the Test Suite
Check for migrations and seed your db:
```bash
rake db:test:prepare
```
To **run** the tests individually:
```bash
# Home Controller:
ruby -I. test/controllers/home_controller_test.rb
# People Controller:
ruby -I. test/controllers/people_controller_test.rb
# Person Model:
ruby -I. test/models/person_test.rb
```
To **run** all tests:
```bash
rake
# or
rake test
```
## Running the App Locally
To **run** the app:
```bash
# Start the server:
rails server
# Navigate to:
http://localhost:3000/
```