Source code for the dokk.org website. https://dokk.org

zPlus 74abe165ce Fix #1 Stop search while typing. %!s(int64=5) %!d(string=hai) anos
dokk 74abe165ce Fix #1 Stop search while typing. %!s(int64=5) %!d(string=hai) anos
fuseki cd7784d155 Remove some comments in the fuseki template. %!s(int64=5) %!d(string=hai) anos
.gitignore ca1ddad0f5 Move database stuff to another repository. Here we only keep the %!s(int64=6) %!d(string=hai) anos
LICENSE 02d41269b3 Change license GPL->AGPL %!s(int64=6) %!d(string=hai) anos
Makefile b1b4fb8ec0 Add graph editor. %!s(int64=5) %!d(string=hai) anos
README.md b1b4fb8ec0 Add graph editor. %!s(int64=5) %!d(string=hai) anos
dokk.png 2398912c0f Add DOKK logo. %!s(int64=6) %!d(string=hai) anos
dokk.service b1b4fb8ec0 Add graph editor. %!s(int64=5) %!d(string=hai) anos
dokk.svg 2398912c0f Add DOKK logo. %!s(int64=6) %!d(string=hai) anos
favicon.ico ca1ddad0f5 Move database stuff to another repository. Here we only keep the %!s(int64=6) %!d(string=hai) anos
fuseki.service b1b4fb8ec0 Add graph editor. %!s(int64=5) %!d(string=hai) anos
gunicorn.py b1b4fb8ec0 Add graph editor. %!s(int64=5) %!d(string=hai) anos
requirements.txt b1b4fb8ec0 Add graph editor. %!s(int64=5) %!d(string=hai) anos
robots.txt b1b4fb8ec0 Add graph editor. %!s(int64=5) %!d(string=hai) anos
settings.ini 5537f25fda Add a "reserved path" configurable from settings. %!s(int64=5) %!d(string=hai) anos

README.md

Requirements

These tools are required to work with the files in this repository. Install them before continuing.

  • closure-compiler (from google)
  • python3
  • stylus (CSS preprocessor)
  • tidy (HTML cleanup tool)

Installation

Database (Fuseki)

  1. Download [apache-jena-X.Y.Z.tar.gz](http://archive.apache.org/dist/jena/binaries/) and extract to /opt/jena
  2. Download [apache-jena-fuseki-X.Y.Z.tar.gz](http://archive.apache.org/dist/jena/binaries/) and extract to /opt/fuseki
  3. Copy the directory fuseki/run from this repository into /opt/fuseki/run
  4. Follow the instructions in fuseki.service to install a systemd service
  5. Optionally, you can add /opt/jena/bin and /opt/fuseki/bin to $PATH

Website

  1. Copy this repository into /srv/dokk
  2. Create virtual environment for Python

    cd /srv/dokk virtualenv -p python3 venv

    -> if didn't work try: python3 -m venv venv
    

    source ./venv/bin/activate pip3 install -r requirements.txt

  3. Build assets (CSS, JavaScript)

    make

  4. Create a folder for storing uploaded files

    mkdir /srv/dokk-archive

  5. Configure settings by editing settings.ini

  6. Install a systemd service; follow the instructions in dokk.service.

Or run a server directly

   # With gunicorn
   gunicorn --log-file - --config gunicorn.py dokk:application

   # Or with Python
   python3 -m bottle --debug --reload --bind 127.0.0.1:8080 dokk

License

DOKK is free software released under the GNU Affero General Public License, either version 3 or (at your option) any later version.