It should be sufficient to just run:
sudo aptitude install python3-dev libpq-dev g++ libxml2-dev libxslt1-dev postgresql postgresql-contrib
python3.7 -m pip install --user -U poetry
poetry install
sudo -u postgres psql -f db_create.sql
poetry run ./manage.py migrate
poetry run ./manage.py collectstatic -l
poetry run ./manage.py update_index
Please install PyLint and Black on your computer and in your code editor to make sure your code is well readable.
The same as above (on Debian-based systems), but you can call Poetry like so to avoid installing the dev dependencies:
poetry install --no-dev
This project uses Supervisor. Start the server with:
poetry run supervisord -c supervisord.conf
Restart with:
poetry run supervisorctl restart all
poetry run ./manage.py test researchlibrary
The acerl user needs to have the createdb
permission:
alter user acerl with createdb;
To build:
cd docs/ && make html
To view, open /docs/html/index.html
in a browser.