A micromobility aggregation service (v1)
Either run the application from the command line or from IntelliJ. It is possible to run the application enabled with auto reload
./gradlew clean build run- For auto reload, open a new tab and enter
./gradlew -t installDist
Run configurations are added in the git repository. You can simply run bikeservice for
hot reload. However, a description to create it on your own follows:
- Open
Application.ktand hit the green play-button next to themain()function - For auto reload, go to
Edit Configuration(In the dropdown next to play and debugger icon up to the right)-
The run configuration for the
main()should appear under Kotlin. Select it and hitAllow parallel runin the top right corner -
Hit
+and create a newGradleconfiguration with the following inputs.- Name:
AutoReload - Gradle tasks:
./gradlew - Arguments:
-t installDist - Allow parallel run by checking the box in the top right corner
- Name:
-
Hit
+and create a newCompoundconfiguration and select the two configurations descriped above. Lets call itLahmu -
Run
Lahmu-configuration and the auto reload functionality is present
-
This project is using a code formatter called Ktlint.
- To check for format errors:
./gradlew ktlintCheck - To fix all format errors:
./gradlew ktlintFormat
To run ktlintFormat as a pre-hook (recommended) do the following:
brew install ktlint./gradlew ktlintApplyToIdea addKtlintFormatGitPreCommitHook
docker build --tag lahmu:0.0.1 .docker run --publish 8000:8080 --name lahmu lahmu:0.0.1
If the docker image already exists, you can remove it by: docker rm --force lahmu