Trade School is an alternative school that runs on barter
Python JavaScript CSS Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dev
ts
.gitignore
.travis.yml
LICENSE
README.md
base.cfg
bootstrap.py
development.cfg
fab_config.py.sample
fabfile.py
manage.py
server.cfg
testing.cfg

README.md

Trade School Everywhere

Travis Build Status

Installation

Setup is done using buildout. There is a base configuration file base.cfg that is extended for installing on different environments:

  1. development.cfg
  2. testing.cfg
  3. server.cfg

When installing locally, use development.cfg. Otherwise, fab is used to install the project remotely automatically.

To install locally:

./dev/setup_dev.sh

To run locally:

./bin/django runserver

To run tests:

./bin/django test tradeschool -v 2

To install remotely:

  1. $ cp fab_config.py.sample fab_config.py
  2. edit fab_config.py with testing and/or production domains
  3. edit settings/testing.py and/or settings/server.py with database info and local paths
  4. $ ./bin/fab <testing|production> initialize_everything
  5. $ ./bin/fab <testing|production> deploy