Welcome to Belly User Service

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 and retrieve users from a database.

Requirements

User Service runs on Ruby 2.0.0-p247. Please install with your favorite version manager.

Installation

  • Clone User 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

Usage

User Service provides API endpoints to create and update users (resource name: users) The service can be run on port 9393 with shotgun -p 9393 Use rake routes to view the available endpoints