#Carspolygons
- I chose as data base MongoDB because it has support of GeoJson operations out of the box.
- Challenge API returns always new VINs, I never saw a repeated VIN for which I should have updated cars coordinates.
- I partially applied principles of Domain Driven Design e.g. entities and values.
- Start challenge API and MongoDB locally :
docker-compose up
- to start the carspolygons application run
./gradlew bootRun
or startCarsPolygonsApplicationKt
class from your favorite IDE. - open in browser
http://localhost:8080/swagger-ui.html
In order to build a docker image run:
./gradlew build
docker build -t app/carspolygons:v0.1.0 .
In order to run the application in docker execute:
docker run app/carspolygons:v0.1.0 -p 8080:8080