angular + spring boot 3, oauth2 secured
Important: Repository doesn't contain the Google API Key due to safety reasons. This means that when you run the app locally you won't be able to see the map.
Follow the steps in given order
Prerequisite: docker daemon installed and running
docker compoose up
This will start:
- Postgres DB (to be used by Keycloak)
- Keycloak server
Prerequisite: java 19 jdk installed
gradlew bootRun --args='--spring.profiles.active=local'
This will start API service for train-tracker available at http://localhost:8080
Swagger UI is available at http://localhost:8080/swagger-ui.html
Prerequisite: node 18 installed
cd ui
ng serve
This will start UI application available at http://localhost:4200
To display trains on the map:
- using the idea http client (./http/trains.http) request for the auth token by firing the
### get access token
request - set the feature flag value to non-zero number using the
### set worker location feature flag value
- press the
Zoom to fit all trains
link to pan the map