Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryandotsmith/komrade-api

The api to the komrade service
https://github.com/ryandotsmith/komrade-api

Last synced: about 2 months ago
JSON representation

The api to the komrade service

Awesome Lists containing this project

README

        

# komrade api

This app is responsible to handeling the provisioning requets made by heroku addons. It also serves the komrade dashboard. Both of these tasks require the komrade api to have access to the komrade database.

## local setup

```bash
$ export $(cat sample.env)
$ bundle install
# Queue Management Database
$ dropdb komrade
$ createdb komrade
$ pg_dump $(heroku config -a komrade-store -s | grep "^DATABASE_URL" | sed 's/DATABASE_URL=//') -s --no-acl --no-owner | psql komrade
$ psql komrade -c "insert into queues (heroku_id) values ('`whoami`');"
# Queue Statistics Database
$ dropdb komrade-stats
$ createdb komrade-stats
$ pg_dump $(heroku config -a komrade-store -s | grep "^STATS_DATABASE_URL" | sed 's/STATS_DATABASE_URL=//') -s --no-acl --no-owner | psql komrade-stats
$ bundle exec bin/web
```