An open API service indexing awesome lists of open source software.

https://github.com/eis/spring-boot-example

Simple Spring Boot app to get started.
https://github.com/eis/spring-boot-example

java17 spring-boot-3

Last synced: 2 months ago
JSON representation

Simple Spring Boot app to get started.

Awesome Lists containing this project

README

          

Simple Spring Boot app
======================


Originally started from tutorial at https://spring.io/guides/gs/spring-boot/ but with added
- Thymeleaf MVC
- counter operation
- Springdoc api documentation
- "runme" scripts
- integration tests
- resteasy tests
- robot acceptance test
- GitHub Actions build
- AWS CodeBuild build
- CodeCov integration
- Dockerfile
- Vagrantfile

Answers to [http://localhost:8080/](http://localhost:8080/) (GET) and
[http://localhost:8080/add](http://localhost:8080/add) (POST), latter being
JSON interface.

See [http://localhost:8080/swagger-ui.html](http://localhost:8080/swagger-ui.html) for usage.

Docker stuff
------------

```bash
# build container from Dockerfile
docker build -t spring-boot-example .

# run container
docker run -ti -p 0.0.0.0:8080:8080 --rm spring-boot-example

# call your container
curl `docker-machine ip default`:8080

# stop your container
docker stop CONTAINERNAME

# debug something
docker ps
```

For Docker job on AWS, see [Docker sample for CodeBuild](https://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html)