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

https://github.com/reginabdr/spring-boot-demo

Spring Boot demo project for goal
https://github.com/reginabdr/spring-boot-demo

docker-compose gradle java jdbc jpa-hibernate liquibase postgresql spring-boot

Last synced: 6 months ago
JSON representation

Spring Boot demo project for goal

Awesome Lists containing this project

README

          

# Demo Application

This project is created using Spring Boot 3.3, with the following features:
- Java version 17.
- Postgresql as database.
- Docker compose.
- Liquibase for incremental migrations.
- JUnit, MockMvc and testcontainers for testing.

## Development

To start the application run the following command in the terminal

```
./gradlew bootRun
```

### Using Docker to simplify development

To start a postgresql database in a docker container, run:

```
docker compose -f src/main/docker/postgresql.yml up -d
```

To stop it and remove the container, run:

```
docker compose -f src/main/docker/postgresql.yml down
```

## Testing

### Spring Boot tests

To launch the application's tests, run:

```
./gradlew test
```

## API Documentation

To access the Api documentation in dev environment:

```
http://localhost:8080/swagger-ui/index.html
```