CaucusCentralAPI
Caucus Central is an app to allow caucus precinct captains to quickly and easily calculate and share their candidate's viability with a campaign headquarters.
Development
Prerequisites
Setup
- Clone the repository (
git clone git@github.com:Bernie-2016/CaucusCentralAPI.git
) - Install gem dependencies:
bundle install
- Create and migrate the database:
rake db:setup
- Create a
.env
file for the secret key, formatted as follows. - Run
rails s
and clone/setup the client app
SECRET_TOKEN=some_token
Testing
bundle exec rspec
to run testsbundle exec rubocop
for linting
Contributing
- Fork it ( https://github.com/Bernie-2016/CaucusCentralAPI/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request