volca_sample_manager
- Download the code from github
git clone git@github.com:rabramley/volca_sample_manager.git
- Install the requirements
Go to the volca_sample_manager
directory and type the command:
sudo apt-get install libldap2-dev
sudo apt-get install libsasl2-dev
pip install -r requirements.txt
- Create the database using
Staying in the volca_sample_manager
directory and type the command:
./manage.py version_control
./manage.py upgrade
- Run the application
Staying in the volca_sample_manager
directory and type the command:
./app.py
- Start Celery Worker
This application uses Celery to run background tasks.
To start Celery run the following command from the volca_sample_manager
directory:
celery -A celery_worker.celery worker
To test the application, run the following command from the project folder:
pytest
Follow the procedure on this site: https://redis.io/topics/quickstart
Which, if they haven't changed are:
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
sudo make install
redis-server
To check that it is working run: redis-cli ping