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
- Host: GitHub
- URL: https://github.com/reginabdr/spring-boot-demo
- Owner: ReginaBDR
- Created: 2024-07-31T14:46:10.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-06T22:52:42.000Z (almost 2 years ago)
- Last Synced: 2025-04-07T01:14:38.557Z (about 1 year ago)
- Topics: docker-compose, gradle, java, jdbc, jpa-hibernate, liquibase, postgresql, spring-boot
- Language: Java
- Homepage:
- Size: 85.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```