-
Notifications
You must be signed in to change notification settings - Fork 18
Project Setup in OSX
In order to start developing Verboice on an OSX machine, you need to install the following prerequisites.
You need to have installed the latest version of the xcode developer tools:
xcode-select --install
LibYAML
brew install libyaml
SOX
brew install sox
Asterisk
brew install asterisk
Verboice web interface is written in Ruby 1.9.3-p550, while the backend broker is written in Erlang 17. We suggest manage the Ruby installation using rbenv or rvm, and install erlang directly using homebrew.
Verboice uses MySQL as backend storage. Install it using homebrew and ensure it is running when starting the application.
Optionally, if you choose to run Poirot for logging, you will also need to install ElasticSearch and ZeroMQ:
brew tap homebrew/versions
brew install homebrew/versions/zeromq3
brew install elasticsearch
Make sure to update settings asterisk_config_dir
and asterisk_sounds_dir
in broker/verboice.config
to match the paths where Asterisk was installed. If you installed it using homebrew, they should be:
{asterisk_config_dir, "/usr/local/etc/asterisk"},
{asterisk_sounds_dir, "/usr/local/opt/asterisk/var/lib/asterisk/sounds/"},
Install web app dependencies by running bundle install
in the Verboice folder.
To set up the database, run bundle exec rake db:setup
as in a regular Rails project.
To run the broker, simply cd
into the broker directory, run make
to compile, and make run
to run the project. Make sure you have already set up the database before starting the broker, and that asterisk is running.
To run the web app, run bundle exec rails s
to start the Rails application in port 3000.