maciejwitwicki / train-tracker

angular + spring boot 3, oauth2 secured

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

train-tracker

angular + spring boot 3, oauth2 secured

train-tracker

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.

Running locally

Follow the steps in given order

Start docker compose

Prerequisite: docker daemon installed and running

docker compoose up

This will start:

  • Postgres DB (to be used by Keycloak)
  • Keycloak server

Start train-tracker backend

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

Start train-tracker UI

Prerequisite: node 18 installed

cd ui
ng serve

This will start UI application available at http://localhost:4200

Enable real-live train tracking

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

About

angular + spring boot 3, oauth2 secured


Languages

Language:Java 49.8%Language:TypeScript 25.1%Language:HTML 16.2%Language:SCSS 6.6%Language:Kotlin 2.1%Language:JavaScript 0.3%