Basechurch is a set of APIs for front-ends to interact with in order to save data about their church and the groups inside it. The goal is to have one API that a church's various platforms (iOS, Android, web) will fetch data from.
- Set up repository
$ cd ~/repos # or wherever you want to store your code
$ git clone git@github.com:openmcac/basechurch
$ cd basechurch
$ bundle install --without staging # install required gems
$ bundle exec rake db:migrate # update database
$ cd spec/test_app
$ bundle exec rake db:seed # populate test data
$ curl get.pow.cx | sh # installs pow
$ cd ~/.pow
$ ln -s ~/repos/basechurch/spec/test_app basechurch
- Your application is now served at http://basechurch.dev
You can run all specs with the following command:
$ cd ~/repos/basechurch
$ RAILS_ENV=test bundle exec rake db:migrate # update test db
$ bundle exec rspec
You can also run specs automatically (TDD) with:
$ cd ~/repos/basechurch
$ bundle exec guard
Make sure that all specs pass before submitting a Pull Request.