1.1 KiB
1.1 KiB
ATST
Installation
./script/setup
The setup script will create a new Python virtual environment for the application to use. All of the scripts will activate this virutal envirnment automatically, but you can also manually activate it like this:
source .venv/bin/activate
When you are done, type
deactivate
If you want to automatically load the virtual environment whenever you enter the project directory, take a look at direnv. An .envrc
file is included in this repository. direnv will activate and deactivate virtualenvs for you when you enter and leave the directory.
Running (development)
To start the app and watch for changes:
DEBUG=1 ./script/server
Testing
To run unit tests:
./script/test
or
python -m pytest
or
make test
Notes
tornado templates are like mustache templates -- add the
following to ~/.vim/filetype.vim
for syntax highlighting:
:au BufRead *.html.to set filetype=mustache