waldyrious / wiki-tools

Code for my Wikimedia Labs Tools account

Home Page:http://tools.wmflabs.org/hay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hay's wiki tools

Source code for all of my wiki tools

Setup

  • Create a config.php file (use config-sample.php as an example) in the lib directory.
    • If you plan on using docker-compose you can require_once __DIR__ . '/../.docker-compose/config.php';, which defines many things automatically.
  • Do a composer install in the lib/ directory. For this you need Composer.
  • Do a bower install in the root directory. For this you need Bower npm install -g bower.
  • Some tools (like VizQuery, or Depictor) need an npm install or composer install in their root as well.
    • VizQuery also needs a 'npm run build' to build the bundle.

Setting up your own OAuth consumer for Depictor

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:

You will then be provided a key and secret that you need to define in OAUTH_DEPICTOR in your config.php file.

Running it (Docker)

Running it (Classic)

  • Get a webserver with PHP, and host the needed files
  • Configure the config.php file to reflect where these files will be served
  • Setup MySQL, inclusing creating the tables you can find in various .sql files

Remarks

  • To generate the props.html file that is used in the Wikidata Property browser, either:

License

All code is licensed under the terms of the MIT / X11 license.

Credits

Some of this stuff was written for my work as Wikipedian in Residence at the Dutch National Library and National Archive.

About

Code for my Wikimedia Labs Tools account

http://tools.wmflabs.org/hay


Languages

Language:Shell 38.6%Language:JavaScript 24.1%Language:PHP 18.0%Language:Vue 11.4%Language:SCSS 3.0%Language:CSS 2.3%Language:HTML 1.3%Language:Python 1.1%Language:TypeScript 0.3%