https://github.com/rubensgomes/helloworld-ms
A sample Spring Boot microservice.
https://github.com/rubensgomes/helloworld-ms
aws ecs kotlin microservice springboot
Last synced: 10 months ago
JSON representation
A sample Spring Boot microservice.
- Host: GitHub
- URL: https://github.com/rubensgomes/helloworld-ms
- Owner: rubensgomes
- License: apache-2.0
- Created: 2025-06-03T13:48:57.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-06-09T04:25:59.000Z (10 months ago)
- Last Synced: 2025-06-09T05:24:38.741Z (10 months ago)
- Topics: aws, ecs, kotlin, microservice, springboot
- Language: Kotlin
- Homepage: https://github.com/rubensgomes
- Size: 71.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# helloworld-ms
A basic Kotlin Spring Boot microservice.
- Requires Java LTS 21 or greater.
## Display Java tools installed
```shell
./gradlew -q javaToolchains
```
## Clean, lint, test, and assemble
```shell
./gradlew --info clean
```
```shell
./gradlew :app:spotlessApply
```
```shell
./gradlew --info check
```
```shell
./gradlew --info bootJar
```
### Start and stop using bootRun
- Start using "bootRun":
```shell
./gradlew --info bootRun
```
- Stop "bootRun"
```shell
./gradlew --stop
```
- To render the `Hello World!` messasge:
```shell
curl --verbose "http://localhost:8080/api/v1/helloworld"
```
### To create a release
```shell
# only Rubens can release
./gradlew --info release
```
## Public API in AWS ECS
- Ensure cluster is setup
- Ensure task definition is setup (SERVER_PORT=8888)
- Ensure service is up and running
- Ensure security group allows proper inbound traffic to port 8888
- http://:8888/api/v1/helloworld
---
Author: [Rubens Gomes](https://rubensgomes.com/)