Qiita is pip installable, but depends on some non-python packages that must be installed first.
- PostgreSQL (we have tested most extensively with 9.3)
- redis-server (we have tested most extensively with 2.8.17)
Install both of these packages according to the instructions on their websites. You'll then need to ensure that the postgres binaries (for example, psql
) are in your executable search path ($PATH
environment variable).
Then, you can use pip to install Qiita, which will also install its python dependencies.
pip install numpy
pip install https://github.com/biocore/mustached-octo-ironman/archive/master.zip --no-deps
pip install qiita-spots
After these commands are executed, you will need to:
- Download a sample Qiita configuration file.
cd
curl -O https://raw.githubusercontent.com/biocore/qiita/master/qiita_core/support_files/config_test.txt > config_test.txt
- Set your
QIITA_CONFIG_FP
environment variable to point to that file:
echo "export QIITA_CONFIG_FP=$HOME/config_test.txt" >> ~/.bashrc
echo "export MOI_CONFIG_FP=$QIITA_CONFIG_FP" >> ~/.bashrc
source ~/.bashrc
- Start a test environment:
qiita_env make --no-load-ontologies
- Finally you can start the server:
qiita_env start_cluster demo test reserved && sleep 30
qiita webserver start
If all the above commands executed correctly, you should be able to go to http://localhost:21174 in your browser, to login use [email protected]
and password
as the credentials. (In the future, we will have a single user mode that will allow you to use a local Qiita server without logging in. You can track progress on this on issue #920.)
If running on OS X you should make sure that the Xcode and the Xcode command line tools are installed.
If you are using Postgres.app on OSX, a database user will be created with your system username. If you want to use this user account, change the USER
and ADMIN_USER
settings to your username under the [postgres]
section of your Qiita config file.