To deploy the tool, it is necessary to install Docker engine and Docker compose: https://docs.docker.com/engine/install/
- Clone this repository
git clone https://github.com/MODERATE-Project/lec-location-assessment-tool.git- Enter the cloned directory
cd .\lec-location-assessment-tool\- Build the docker image
docker compose -f docker-compose.prod.yaml build --no-cache- Install containers to run the tool
docker compose -f docker-compose.prod.yaml upThe docker-publish.yml workflow builds the frontend and microservice images and publishes them as public packages on the GitHub Container Registry:
ghcr.io/moderate-project/tool-lec-frontendghcr.io/moderate-project/tool-lec-municipalities-svcghcr.io/moderate-project/tool-lec-buildings-svcghcr.io/moderate-project/tool-lec-report-svc
| Event | Tags |
|---|---|
Push to main |
main, latest, sha-<short-sha> |
Release tag (e.g. v1.2.3) |
1.2.3, sha-<short-sha> |
Pull request to main |
Built to validate the Dockerfiles, not pushed |
No credentials are needed to pull them:
docker pull ghcr.io/moderate-project/tool-lec-frontend:latestOpen the browser with the following link: http://localhost
There will be four containers deployed in the system, as can be seen in the docker compose file of this repository. These are:
- Microservice to offer building data through an API. Example:
- To get the data of all buildings in the municipality of Crevillent, you can make a GET request to the endpoint http://127.0.0.1:5001/buildings?municipio=Crevillent
- Microservice to obtain municipality data. Example:
- To get the names of municipalities in Spain, you can make a GET request to the endpoint http://localhost:5000/municipalities
- Geoserver to publish geospatial data in vector formats. Located at http://localhost:8080/geoserver
- React application to access cadastral and socio-statistical information linked with the buildings of a municipality. Located at http://localhost
docker-compose -f docker-compose.prod.yaml down

