Skip to content

amckinnie/ol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This a small app with basic apis to look at some data about businesses. The app utilizes ruby 2.2.3 and rails 4.2.7

The primary dependency for the app is postgres. If you do not have postgres installed, you can download it directly from the site or through Homebrew on a Mac. To get it setup:

brew install postgresql

brew tap homebrew/services

brew services start postgresql

To get ruby installed, it’s recommended to use rvm or rbenv to manage your ruby version. For rvm, here is the setup:

# install rvm
\curl -sSL https://get.rvm.io | bash -s stable

rvm install ruby-2.2.3

To get the app up and running, install all the gems with bundler:

# If bundler is not installed
gem install bundler

bundle install

To setup the db

# creates tables
rake db:create

# run migrations
rake db:migrate

# import data
rake data:import

To run tests

rake test

To run the app in dev mode

rails s

The apis included in this app are to access a list of businesses and an individual business. For the list, the parameter “page” is used to represent the page number and the parameter “page_size” is used to represent the number of businesses returned per page, with a default of 50.

About

Basic test apis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors