1.7 KiB
Development
Vagrant environment
The Vagrant environment and the Ansible playbook is used only for local tests and development of the application.
The installation of Vagrant is described at https://docs.vagrantup.com/v2/installation/index.html.
To speedup the provisioning you can install the Vagrant plugin vagrant-cachier.
$ vagrant plugin install vagrant-cachier
Bootstrap the Vagrant environment.
$ vagrant up
Now it is possible to login with SSH.
$ vagrant ssh
Open a new screen or tmux session. Aftwards run the api, worker, and producer services in the foreground, each service in a separate window.
faafo-api
faafo-worker
faafo-producer
RabbitMQ server
The webinterface of the RabbitMQ server is reachable on TCP port
15672
. The login is possible with the user
guest
and the password guest
.
MySQL server
The password of the user root
is
secretsecret
. The password of the user faafo
for the database faafo
is also
secretsecret
.
Virtual environment
Create a new virtual environment, install all required dependencies and the application itself.
$ virtualenv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ python setup.py install
Open a new screen or tmux session. Aftwards run the api and worker services in the foreground, each service in a separate window.
$ source .venv/bin/activate; faafo-api
$ source .venv/bin/activate; faafo-worker