# Developing Flows

Flows is handled on the Heroku platform.

## Getting started

First steps to get started.

- Create an account on Heroku.
- Install the Heroku utilities.
- Ask a Liquidsoap administrator to give you access to the repositories.

The repositories of the main components are organized as follows.

- `savonet-flows` is the python handler to submit metadata:
  - the associated github repository
  - the Heroku repository is `git@heroku.com:savonet-liquidsoap.git`
- `savonet-flows-socket` is the node application to serve the webpage and client stuff.
  - the associated github repository
  - the test Heroku webpage is updated by pushing on `git@heroku.com:savonet-flows-socket-next.git`
  - the prod Heroku webpage is updated by pushing on `git@heroku.com:savonet-flows-socket.git`

Some more experimental repositories include:

- a command-line client

## Useful commands

Getting the environment variables:

    heroku config -s --app savonet-flows

Seeing the logs of the socket application:

    heroku logs -t --app savonet-flows-socket