The website for the American Gut Project participant portal
First install Postgres.app
Make sure that the path is configured properly so add the following to your .profile
file
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin
Next install Redis. To install via Homebrew do
brew install redis
Now setup an virtual environment via virtualenv
mkvirtualenv amgut
workon amgut
Now install all of the dependencies. This will also install dependencies included in extras_require
pip install -e .[test]
And copy over the configuration file
cp ag_config.txt.example amgut/ag_config.txt
To configure some of the configurations. Namely, make sure to fill in entries for DATABASE
.
To enable uuid v4 function in postgres:
echo 'CREATE EXTENSION "uuid-ossp";' | psql
Make sure that all of your permissions are set correctly. See ALTER USER
Finally run the tests to populate the databases and launch the website
./scripts/ag make test
python amgut/webserver.py