The TapWater Rails Application provides authentication and synchronization for the TapWater Android App and the TapWater iOS App
- Install Ruby 2.0.0 and Rails 4.1.0
- Clone the project from github:
git clone git@github.com:TapWater/TapWater-Rails.git
. - Install the gems in the GEMFILE with bundler:
bundle install
- Create a
config/database.yml
file. Seeconfig/database.yml.exmaple
for a template. - Setup the database environment:
rake db:create && rake db:migrate
- Start the rails server:
rails server
- Access the application at "localhost:3000" in your web browser
The data model consists of 3 models. Drinks, Users, and Devices.
A user is a single tapwater user. They log into and out of the iOS and Android applications to keep track of their drink history
- username
- password_digest
A drink represents a single drink with a quatity of 4oz, 8oz, or 16oz.
- category ('drink', 'glass', 'bottle')
- user_id
- uuid
- drink_date
A device is each of the devices the user is logged in on.
- device_token
- device_type
- user_id
This project is built with Ruby 2.0.0.
We suggest installing a ruby version manager. Our preference is rbenv or rvm.
This project uses the Rails 4.1.0 web framework.
This project is built to be used with a PostgreSQL database. The database can be installed using homebrew.
The PostgreSQL gem is used to connect the application to the database. It is included in the GEMFILE.