An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# CatDog
[![Code Climate](https://codeclimate.com/github/existenzial/CatDog/badges/gpa.svg)](https://codeclimate.com/github/existenzial/CatDog)

![CatDog](app/assets/images/logo.png)

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)

## Dependencies

* ```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/
```