Skip to content

EmbrietteH/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 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

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 54.1%
  • HTML 39.5%
  • JavaScript 4.7%
  • CSS 1.2%
  • SQLPL 0.5%