This is a web application for tracking and displaying personal metrics.
- Install virtualenv (http://www.virtualenv.org/en/latest/index.html#installation)
easy_install virtualenv
virtualenv --no-site-packages <virtualenv dir>
- Install Pyramid (http://docs.pylonsproject.org/projects/pyramid/en/1.2-branch/narr/install.html)
<virtualenv dir>/bin/easy_install pyramid
- Install Jinaj2 (http://jinja.pocoo.org/docs/intro/#installation)
<virtualenv dir>/bin/easy_install Jinja2
- Install PostgreSQL (http://postgresapp.com/)
- May need to fix a library:
cd /usr/lib
,sudo ln -s libpq.5.4.dylib libpq.5.dylib
- (Optional) Add extras to PATH in .bashrc:
export PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"
- (Optional) Install pgAdmin3 (http://www.postgresql.org/ftp/pgadmin3/release/v1.14.3/osx/)
- May need to fix a library:
- Install SQLAlchemy (http://docs.sqlalchemy.org/en/latest/intro.html#installation)
<virtualenv dir>/bin/easy_install SQLAlchemy
- Install psycopg (http://initd.org/psycopg/install/)
<virtualenv dir>/bin/easy_install psycopg2
- Install sqlalchemy-migrate (http://sqlalchemy-migrate.readthedocs.org/en/v0.7.2/download.html)
<virtualenv dir>/bin/easy_install sqlalchemy-migrate
- (Optional) Install Docutils (http://docutils.sourceforge.net/)
<virtualenv dir>/bin/easy_install docutils
<virtualenv dir>/bin/python main.py
- Start Postgres.app
- Connect to Postgres:
- Host:
localhost
- Port:
5432
- User:
<your username>
- Host:
- Add your database to migration repository (http://sqlalchemy-migrate.readthedocs.org/en/v0.7.2/versioning.html#version-control-a-database)
<virtualenv dir>/bin/python migration_repo/manage.py version_control <database URL> migration_repo/
- Update
manage_db.py
to reflect your database settings - Upgrade to latest version
<virtualenv dir>/bin/python manage_db.py upgrade