Skip to content

Latest commit

 

History

History
92 lines (62 loc) · 2.62 KB

CONTRIBUTING.md

File metadata and controls

92 lines (62 loc) · 2.62 KB

Requirements

If you need to make asset changes:

  • Node with the version specified by the .nvmrc nvm file.

Installation

  • composer install
  • npm install

For Google Cloud Vision Engine

For Tesseract OCR Engine

  • Install Tesseract and make sure it's in your $PATH

For Transkribus OCR Engine

You can create a free account for Transkribus, and get a small number of free credits.

You will also need to set the username and password of your Transkribus account in .env.local:

APP_TRANSKRIBUS_USERNAME=username
APP_TRANSKRIBUS_PASSWORD=password

Note: You will require sufficient credits in your account to use the Transkribus API.

Run the application

  • symfony serve to start the application
  • npm run watch if you need to make JS/CSS changes. Compiled assets are not committed.

Using Redis for caching

The application caches some data. In development this is done on the filesystem (in the var/cache/dev/pools/ directory), and in production in Redis (the Toolforge installation).

To test the Redis configuration locally, open an SSH tunnel to Toolforge's Redis server:

$ ssh -N -L 6379:redis.svc.tools.eqiad1.wikimedia.cloud:6379 login.toolforge.org

And set the following in .env.local:

APP_ENV=prod
REDIS_HOST=localhost

Then clear the application cache with

$ ./bin/console c:c

Docker Developer Environment

(beta: this is a very raw setup and needs improvements)

Requirements

Quickstart

Setup container

./docker/setup.sh

Run container

./docker/run.sh