The Switchboard depends on a registry of compatible tools, freely available online at https://github.com/clarin-eric/switchboard-tool-registry. Cloning this repository is required. The default settings require it to have the same parent directory as the switchboard.
-
Download the sources from github:
git clone https://github.com/clarin-eric/switchboard.git
-
Build the application's docker image:
make build-docker-image
-
Run the Docker image (but replace /PATH/TO with a real path):
docker run --name switchboard -d -p 8080:8080 -v /PATH/TO/switchboard-tool-registry:/switchboard-tool-registry:ro switchboard/switchboard:latest
(this may depend on your local computing environment).
-
Go to http://localhost:8080 in your browser to get access to the switchboard.
-
Download the sources from github, e.g.,
git clone https://github.com/clarin-eric/switchboard.git
-
Build the application's backend, and start it on port 8080:
make run-backend
Alternatively, the backend can be started from an IDE like Eclipse or IntelliJ IDEA.
-
Get the dependencies if it's the first time running the frontend:
make dependencies
-
Build the frontend with webpack in hot development mode:
make run-webui-dev-server
-
Go to http://localhost:8081 in your browser to get access to the switchboard. Any change in the frontend code will trigger an automatic recompilation and browser refresh. Changing the backend java code requires a restart of the backend.