{"id":21406581,"url":"https://github.com/arkantrust/spring-boot","last_synced_at":"2026-01-02T20:57:38.587Z","repository":{"id":181565124,"uuid":"666966501","full_name":"arkantrust/spring-boot","owner":"arkantrust","description":"Template repository for any web app using spring boot.","archived":false,"fork":false,"pushed_at":"2023-10-08T16:51:59.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T04:11:14.329Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arkantrust.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-07-16T07:26:11.000Z","updated_at":"2023-10-08T07:16:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"a6112f9a-d203-488a-a364-8383a4999607","html_url":"https://github.com/arkantrust/spring-boot","commit_stats":null,"previous_names":["arkantrust/spring-server","arkantrust/spring-boot"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkantrust%2Fspring-boot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkantrust%2Fspring-boot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkantrust%2Fspring-boot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkantrust%2Fspring-boot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arkantrust","download_url":"https://codeload.github.com/arkantrust/spring-boot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902321,"owners_count":20366262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-22T16:40:39.777Z","updated_at":"2026-01-02T20:57:38.551Z","avatar_url":"https://github.com/arkantrust.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-boot template\n\nTemplate repository for any web app using [Spring Boot 3](https://spring.io/projects/spring-boot), [java 21](https://docs.aws.amazon.com/corretto/latest/corretto-21-ug/downloads-list.html) and [PostgreSQL 16](https://www.postgresql.org/).\n\n\n## Running with docker\n\n``` bash\ndocker compose up # Add -d to run in background\n```\n\nNOTE: The `data/` directory holds the DB data from the container to persist it if it restarts. But it's been ignored by git.\n\nKill the containers with:\n\n``` bash\ndocker compose down\n```\n\n## Development\n\nIt's still possible to run the app without docker, in fact it's recommended for development.\n\n### Database\n\nRun the DB using docker:\n\n``` bash\ndocker run -d --name spring -e POSTGRES_PASSWORD=postgres -p 5432:5432 postgres:16\n```\n\nThis will install the PostgreSQL 16 docker image automatically. And you can the access it with:\n\n``` bash\ndocker exec -it spring psql -U postgres\n```\n\n\nIt's also possible to use a local DB by installing PostgreSQL on your machine.\n\nSpecify the environment variables in the `application.yaml` file:\n\n``` yaml\nspring:\n  datasource:\n    url: jdbc:postgresql://127.0.0.1:5432/app\n    username: postgres\n    password: postgres\n```\n\nIt's mandatory to create the database `app` before running the app.\n\n``` SQL\nCREATE DATABASE app;\n```\n\nNOTE: `data/` holds the data from the container to persist it if it restarts. But it's been ignored by git.\n\n## Running the app\n\n``` bash\nmvn clean package # build the app\n\njava -jar target/spring-0.0.1.jar # run the app\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farkantrust%2Fspring-boot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farkantrust%2Fspring-boot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farkantrust%2Fspring-boot/lists"}