pega
Setup a virtualenv and install requirements:
mkvirtualenv --no-site-packages pega -p python3
pip install -r requirements.txt
git clone https://github.com/cmu-sei/cyobstract.git
cd cyobstract && python setup.py install
./manage.py runserver
To build JavaScript and CSS files, first install npm packages:
npm install
Then to build (and watch for changes locally) just run:
npm run dev-watch
Celery can be used to run background tasks. To run it you can use:
celery -A pega worker -l INFO
To setup Google Authentication, follow the instructions here.
To run tests simply run:
./manage.py test
Or to test a specific app/module:
./manage.py test apps.utils.tests.test_slugs
On Linux-based systems you can watch for changes using the following:
ack --python | entr python ./manage.py test