Visit production application at https://slco-court-calendar-service.herokuapp.com/.
Request data from the API.
Responds with zero or more court calendar events.
GET /api/v0/event-search.json
Specify one or more search parameters. A result will be included in the response if it matches ALL request conditions.
| event_search_parameter | description | example |
|---|---|---|
first_name |
The defendant's first name. | KARL |
last_name |
The defendant's last name. | MALONE |
birth_date |
The defendant date of birth in YYYY-MM-DD format. | 1988-04-05 |
Install ruby and bundler.
Install postgresql.
Download source code and install package dependencies.
git clone git@github.com:slco-2016/slco-court-calendar-service.git
cd slco-court-calendar-service/
bundle installSet the following environment variables based on credentials obtained from county government partners:
SLCO_FTP_HOSTSLCO_FTP_USERSLCO_FTP_PASSWORD
Create database user.
psql
CREATE USER courtbot_slco WITH ENCRYPTED PASSWORD 'c0urtb0t!';
ALTER USER courtbot_slco CREATEDB;
ALTER USER courtbot_slco WITH SUPERUSER;
\qCreate and migrate the development database.
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:seedExtract VINE data from the SLCo FTP server.
bundle exec rake extract:vine_filesCreate and migrate the test database.
bundle exec rake db:test:prepareAdd features and corresponding tests, then run tests.
bundle exec rspec spec/Deploy to production.
git push heroku master