Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.05 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.05 KB

Street Cleaning Project

Requirements

  • Java 17
  • MongoDB 4.2+

Data Sources

Java Build / Run

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

Docker

Build image

docker build -t smartcommunitylab/streetcleaning .

Run image

docker run -p 8080:8080 smartcommunitylab/streetcleaning

Docker compose

docker-compose up

Environment Variables

  • DATASOURCE_URL MongoDB datasource URL
  • STREETCLEANING_KMLFILE URL of the KML file of the streets
  • STREETCLEANING_CALFILE URL of the calendar csv file
  • STREETCLEANING_UPDATEFILES Whether to update the data on startup (defaults to true)