Skip to content

adamrp/american-gut-web

 
 

Repository files navigation

american-gut-web

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.3%
  • HTML 38.2%
  • JavaScript 5.5%
  • CSS 1.4%
  • SQLPL 0.6%