This site is built using Python 3.9, PostgreSQL 13, Redis and Nginx.
In addition, to install the lxml package, the following C libraries' development header are necessary to be installed. Here are some example commands:
apt-get install libxml2-dev libxslt-dev
yum install libxml2-devel libxslt-devel
pacaur -S libxml2 libxsltTo work on this project you may need a C compiler since some of the packages have C components, and some may not be available as wheels.
Additionally, nodejs must be installed since the JS on the site is (unfortunately) written in coffeescript.
Set up the virtualenv and install the packages:
python -m venv venv
. venv/bin/active
pip install -r setup/requirements.txt
pip install -r setup/dev-requirements.txtRun the server:
python dev.pyStart the compiler to automatically compile .coffee and .scss files:
python compile.pyWhenever one of these files is saved, the resulting JS or CSS files will be regenerated.
There exists a tmux script that opens multiple panes with the server, compiler, a terminal for git and a PostgreSQL CLI connection. To use this, make sure you have tmux installed and execute:
./dev.sh