devcongress / elections-api

Serving JSON for all elections since 1992
Other
15 stars 7 forks source link
democracy devcongress elections ghana oss

Elections Api · Build Status Test Coverage Code Quality Issues

The Elections API project is a collection of endpoints to retrieve json-formatted elections-related data in Ghana since 1992.

This project is an initiative of DevCongress.

What you need

Project Setup

  1. Clone this repository on your computer with the following command: git clone https://github.com/devcongress/elections-api.git
  2. Run bundle install to grab all the dependencies of the project
  3. Create a copy of the .env.example file in the project root directory, rename it to .env and set the values for ELECTIONS_DB, ELECTIONS_DB_TEST, ELECTIONS_DB_USERNAME, ELECTIONS_DB_PASSWORD variables. All environment variables go into this file.
  4. Run rails db:create to create your database
  5. Run rails db:structure:load to load the db schema.
  6. Run rails server to start your server

How to run the test suite

To run the test suite, run rails test

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Guidelines

Use the following guides for getting things done, programming well, and programming in style.

TODO