/sources-api

Primary LanguageRubyApache License 2.0Apache-2.0

Sources API

Build Status Maintainability Test Coverage Security

This project exposes an API for accessing objects living in the Sources Service database

Prerequisites

You need to install ruby >= 2.5 and run:

bundle install

Getting started

Setup your database configuration

config/database.dev.yml config/database.yml

Then edit the file to setup your postgres info

Next create the database

bin/rake db:create db:migrate
bin/rails s

To list all your routes, use:

bin/rake routes

Start your server:

bin/rails s

This will use kafka by default to send updates for created/updated/deleted actions. It uses localhost:9092 by default but this can be changed by passing QUEUE_HOST= and/or QUEUE_PORT=. To disable kafka updates pass NO_KAFKA=true.

License

This project is available as open source under the terms of the Apache License 2.0.