Skip to content

The website for the American Gut Project participant portal

License

Notifications You must be signed in to change notification settings

tkosciol/american-gut-web

 
 

Repository files navigation

american-gut-web

Build Status Coverage Status

The website for the American Gut Project participant portal

Installation Guide for OSX

First install and run Postgres.app. Make sure that the path is configured properly so add the following to your .bash_profile:

export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin

Now setup a new conda environment via miniconda:

conda create -n amgut python=2.7 tornado psycopg2
source activate amgut

Next install and start Redis via conda.

conda install redis
redis-server

Now by forking, clone and install the repository. This will also install dependencies included in extras_require:

git clone https://github.com/YOUR-GITHUB-USERNAME/american-gut-web.git
pip install -e .[test]

And copy over the configuration file:

cp ag_config.txt.example amgut/ag_config.txt

To configure the webserver. Namely, make sure to fill in entries for POSTGRES and REDIS.

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 create the database and populate it with test data, then launch the website:

./scripts/ag make test
python amgut/webserver.py

Navigating to localhost:8888 will now show the american gut site. Try using tst_ACJUJ as the username to log in. All test kits have test as their password.

About

The website for the American Gut Project participant portal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 55.5%
  • HTML 38.7%
  • JavaScript 4.1%
  • CSS 1.2%
  • SQLPL 0.5%