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

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

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.