For setting up the project we need first to install the following requirements.
This is a list of applications that need to be installed previously to enjoy all the goodies of this configuration.
- Python 2.7.x
- PostgreSQL 9.4
- RabbitMQ 3.5.4
- NodeJs 0.12.7
- Ruby 2.2.2
- Compass 1.0.1
- Gulp 3.9.0
- Browserify
First, we need to synchronize the database.
$ cd src
$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py createsuperuser
Then, we run a local development server doing this.
$ python manage.py runserver
To load initial data just run the following command:
$ python manage.py loaddata messages.json hospitals.json
Run Task queue processes
Use celery we need to create a RabbitMQ user, a virtual host and allow that user access to that virtual host:
$ sudo rabbitmqctl add_user myuser mypassword
$ sudo rabbitmqctl add_vhost myvhost
$ sudo rabbitmqctl set_permissions -p myvhost myuser ".*" ".*" ".*"
Then we set up a BROKER_URL env var and run celery to the same level of manage.py
$ export BROKER_URL='amqp://myuser:mypassword@localhost:5672/myvhost'
$ celery -A foottrial worker -l info
Run the scheduler
$ celery -A foottrial beat
Execute test Behave
make test
- Oscar Giraldo - Initial work - oskargicast
- Jorge Estrada - Initial work - jorgenro1
This project is licensed under the Apache 2.0 License - see the LICENSE.md file for details