Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.74 KB

README.md

File metadata and controls

59 lines (42 loc) · 1.74 KB

Basechurch

Build Status Code Climate Coverage Status

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.

Getting Started

  • Set up repository
$ cd ~/repos                        # or wherever you want to store your code
$ git clone [email protected]: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

Running Specs

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.