Source code for all of my wiki tools
config.php
file (use config-sample.php
as an example) in the lib
directory.
require_once __DIR__ . '/../.docker-compose/config.php';
, which defines many things automatically.composer install
in the lib/ directory. For this you need Composer.bower install
in the root directory. For this you need Bower npm install -g bower
.npm install
or composer install
in their root as well.
Here are some OAuth consumer references to help you during setup: Depictor production on Commons, Addshores local development on meta.
You can setup your own local development consumer by following these steps:
Propose an OAuth 1.0a consumer.
<username>-local-dev
, or <username>-depictor-dev
.http://localhost
, choosing to point requests to the correct location when they appear in your browserhttp://localhost:4080/depictor/index.php
, which should work with the default configured docker-compose setupCommons
must be selectedYou will then be provided a key and secret that you need to define in OAUTH_DEPICTOR
in your config.php
file.
docker-compose up -d
to start the containers.config.php
file to reflect where these files will be served.sql
filesprops.html
file that is used in the Wikidata Property browser, either:
get-wikidata-props.py
script located in etc/wikidata-props
All code is licensed under the terms of the MIT / X11 license.
Some of this stuff was written for my work as Wikipedian in Residence at the Dutch National Library and National Archive.