This Rack app is a small service to be used in conjunction with Belly's Check-In code challenge. The primary function is to create, retrieve, and delete connections from a database.
- Connection Service runs on Ruby 2.0.0-p247. Please install with your favorite version manager.
- Connection Service routinely makes calls to User Service and Merchant Service to validate existence: Clone those services at here and here
- Clone Connection Service from here
- Run
bundle install
- Run
rake db:create; RACK_ENV=test rake db:create
to create the database - Run
rake db:migrate; RACK_ENV=test rake db:migrate
to create tables
Connection Service provides API endpoints to create, retrieve, and delete connections (resource name: connections)
The service can be run on port 9395 with shotgun -p 9395
Use rake routes
to view the available endpoints