- Java 17
- MongoDB 4.2+
- inputdata/calendar (https://www.comune.trento.it/Aree-tematiche/Open-Data/Tipologie-di-dati/Tutti-gli-open-data/Pulizia-strade-e-relativi-divieti-di-sosta-autunno-2020)
- spazzamento.kml (https://www.comune.trento.it/Aree-tematiche/Cartografia/Download/Grafo-stradale-vie-soggette-a-pulizia-strade)
Build with Maven:
mvn clean package -Dmaven.test.skip=true
Run standalone Java app:
java -jar target/streetcleaning-1.0.0.jar
The server is started and listening on port 8080
Build image
docker build -t smartcommunitylab/streetcleaning .
Run image
docker run -p 8080:8080 smartcommunitylab/streetcleaning
Docker compose
docker-compose up
DATASOURCE_URL
MongoDB datasource URLSTREETCLEANING_KMLFILE
URL of the KML file of the streetsSTREETCLEANING_CALFILE
URL of the calendar csv fileSTREETCLEANING_UPDATEFILES
Whether to update the data on startup (defaults to true)