This file describes the instructions to follow to have a local demo of Road2 limited to OSRM and PGRouting engines.
We offer docker images that allow you to test the service locally. We plan to put these images on DockerHub.
These are the same images that we may want to build locally.
To build the image, simply go to the root of the Road2 project and run the following command:
docker build -t road2-demonstration -f docker/demonstration/Dockerfile .
Data is required for Road2 to calculate routes.
You can launch the application with the following command:
docker run --rm road2-demonstration
It is possible to view API documentation locally. We will run the following command:
docker run --rm -p 8083:8080 -e SWAGGER_JSON=/api.yaml -v {path/to/yaml/directory}/api.yaml:/api.yaml swaggerapi/swagger-ui