Skip to content

benzheren/lifescore

Repository files navigation

LifeScore

Development

Local Environment Setup

Assume that you are using Mac OS X Snow Leopard (this means you will have python and related tools installed):

  1. Install virtualenv and install virtualenvwrapper. Use virtualenvwrapper tool to create virtual enviroment for Pyramid.
  2. Install Mysql Community Server 5.1 64-bit or 32-bit from here.
  3. Install memcached by using macports or HomeBrew. HomeBrew is recommended.
  4. Install RabbitMQ by following this. It should be very easy with HomeBrew. After installation, you need to start the server.
  5. Install pip if you don't have it.
  6. Then you can install all required library by running pip install -r requirements.txt
  7. Initialize the mysql database by running paver bootstrap

Run Application Locally

  1. Start Celery by running command celeryd -l info under the project home folder
  2. Start the app by python setup.py develop && PYRAMID_DEBUG_ROUTEMATCH=true paster serve development.ini

Tips for MySQL import

  • mysqlimport -u root --fields-terminated-by=',' --fields-optionally-enclosed-by='"' --lines-terminated-by='\r\n' --verbose --columns=rank,name,city,short_name --local lifescore world_schools.csv

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published