{"id":19502773,"url":"https://github.com/ml-opensource/spring-boot-template","last_synced_at":"2026-06-19T10:32:04.078Z","repository":{"id":157228385,"uuid":"617383814","full_name":"ml-opensource/spring-boot-template","owner":"ml-opensource","description":"Provides Sample of Project for Spring Boot and Java/Kotlin with maven setup","archived":false,"fork":false,"pushed_at":"2023-07-20T08:15:31.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-25T21:42:55.979Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ml-opensource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-22T09:26:23.000Z","updated_at":"2024-05-13T15:49:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"f87be52f-afb5-482c-acc8-43870e290397","html_url":"https://github.com/ml-opensource/spring-boot-template","commit_stats":null,"previous_names":["ml-opensource/spring-boot-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ml-opensource/spring-boot-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ml-opensource%2Fspring-boot-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ml-opensource%2Fspring-boot-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ml-opensource%2Fspring-boot-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ml-opensource%2Fspring-boot-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ml-opensource","download_url":"https://codeload.github.com/ml-opensource/spring-boot-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ml-opensource%2Fspring-boot-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34528134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T22:18:13.268Z","updated_at":"2026-06-19T10:32:04.058Z","avatar_url":"https://github.com/ml-opensource.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-boot-template\nProvides Sample of Project for Spring Boot and Java/Kotlin with maven setup.\nThe project can serve as a template for starting a project in Spring Boot with 4 options:\n- Java - uses Java with the classic spring Boot recommended architecture\n- Java Hexagonal - uses Java with Hexagonal architecture\n- Kotlin - uses Kotlin with the classic spring Boot recommended architecture\n- Kotlin Hexagonal - uses Kotlin with Hexagonal architecture\n\n## Requirements\n* JDK 17\n* Any IDE with [lombok](https://projectlombok.org/) plugin installed\n\n## How to code\nImport as a java project in an IDE of your choice.\n\n## Working locally\n### How to run the app (variant 1, local with mvn commands, local Postgres)\nInstall and configure Postgres locally. For mac follow the [link](https://www.sqlshack.com/setting-up-a-postgresql-database-on-mac/).\n\nInstall locally a Postgres client (eg [PgAdmin](https://www.pgadmin.org/download/pgadmin-4-macos/) )\n\nDepending on which of the 4 options you choose to follow:\nRun `mvn clean install -Dlanguage=kotlinHexagonal` (kotlin/java/javaHexagonal). This will generate the appropriate jar, that will be run later on.\n\nBefore running the app set the following env variables (take advantage of the IDEA run configuration)\n\n`ACTIVE_PROFILE=` dev / qa / prod\n\n`DATABASE_HOST=`\n\n`DATABASE_PORT=`\n\n`DATABASE_NAME=`\n\n`DATABASE_USER=`\n\n`DATABASE_PASSWORD=`\n\nRun `mvn spring-boot:run -f pom.xml`\n\n### How to run the app (variant 2, docker)\nCreate directory to store db files `/var/lib/postgresql/data/`\n\nDepending on which of the 4 options (language/architecture) you choose to follow:\n`docker build --build-arg language=kotlinHexagonal -t template_app .` (`kotlinHexagonal` can be replaced with `kotlin`, `java` or `javaHexagonal`)\n\nEdit database connection properties in `run.sh`\n\nRun `sh run.sh`\n\n## Run tests\n`mvn test`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fml-opensource%2Fspring-boot-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fml-opensource%2Fspring-boot-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fml-opensource%2Fspring-boot-template/lists"}