TwoHomes is a set of communication tools to make co-parenting just a little bit easier. TwoHomes reduces divorce conflict by providing a centralized communication platform that can be easily audited by legal professionals.
- Rails API | Backend - (Web Application Framework)
- EmberJS | Frontend - (JavaScript Web Framework)
- Firebase | Message Data Store - (Realtime Database)
- Postgres | Application Data Store - (Database)
- JSON API Resources | JSON API - (API Specification)
- Doorkeeper | OAuth - (Authentication)
After following the Developer Enviroment Setup (below) you can find the application API documentation at http://localhost:4200
This setup assumes you are using a recent version of OS X and have Homebrew installed.
- Clone this repo
- Navigate to the repo on your local machine
- Install rbenv
- Install Ruby by entering
rbenv install $(cat ./.ruby-version). This installs the version of Ruby that is specified in.ruby-versionin this repo. - Verify the correct version of Ruby is installed by entering
rbenv version. The output should be something like2.2.3. Additionally, verify thatruby --versionoutput is something likeruby 2.2.3p95 (2015-04-13 revision 50295) [x86_64-darwin14] - Install Bundler by entering
gem install bundlerand then runrbenv rehash - Install application dependencies by entering
bundle install - Install PostgreSQL using Homebrew by entering
brew install postgresqland then initialize PostgreSQLpostgres -D /usr/local/var/postgres - Then initialize the PostgreSQL database by entering
pg_ctl initdb -D /usr/local/pgsql/data - Create the application databases by entering
bundle exec rake db:create:all - Migrate the application databases by entering
bundle exec rake db:migrate RAILS_ENV=developmentandbundle exec rake db:migrate RAILS_ENV=test - Start the Ruby on Rails server by entering bin/rails server
- Start the Ember server by following the instructions in the TwoHomes - Client readme.
- Open a browser on your local machine and navigate to http://localhost:4200 and enjoy!
