Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/seldo97/empik-recruitment-task


https://github.com/seldo97/empik-recruitment-task

feign-client github-api groovy h2-database hibernate-jpa java java-21 maven spock-framework spring-boot swagger-ui

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Marcin Olek Empik recruitment task

## 1. Host, Swagger-ui, H2 database resources:
The database file is created in the project's root directory, inside the data folder, after the first run of the application.

- JDBC URL: jdbc:h2:file:./data/app_db;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
- Username: sa
- Password:
```
Local Address: localhost:9090
Swagger UI: localhost:9090/swagger-ui.html
H2 db console: localhost:9090/h2-console
JDBC url: jdbc:h2:file:./data/app_db;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
```

## 2. If you want to run app by Docker instead of IDE:

1. Build project by Maven

```bash
mvn clean install
```
2. Build Docker image

```bash
docker build -t marcinolek:latest .
```

3. Run Docker container

```bash
docker run -d -p 9090:9090 --name marcinolek-app marcinolek:latest
```
## 3. You can change properties in:
```
application.yml
application-docker.yml
```