Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/seldo97/empik-recruitment-task
- Owner: Seldo97
- Created: 2024-08-16T21:17:51.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-18T19:40:54.000Z (4 months ago)
- Last Synced: 2024-11-19T22:11:57.607Z (about 1 month ago)
- Topics: feign-client, github-api, groovy, h2-database, hibernate-jpa, java, java-21, maven, spock-framework, spring-boot, swagger-ui
- Language: Java
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```