{"id":22337789,"url":"https://github.com/boweihan/spring-boot-auth-boilerplate","last_synced_at":"2026-04-11T14:36:12.545Z","repository":{"id":98803597,"uuid":"103781467","full_name":"boweihan/spring-boot-auth-boilerplate","owner":"boweihan","description":"Simple server implementation with Spring Boot - bootstrapped with authentication/encryption/models - techologies: Java, Spring, Postgres ","archived":false,"fork":false,"pushed_at":"2018-03-11T02:32:54.000Z","size":45976,"stargazers_count":4,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T09:45:39.924Z","etag":null,"topics":["gradle","javascript","server","spring","springboot"],"latest_commit_sha":null,"homepage":"","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/boweihan.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":"2017-09-16T20:21:43.000Z","updated_at":"2023-04-26T07:37:59.000Z","dependencies_parsed_at":"2023-05-25T12:00:15.693Z","dependency_job_id":null,"html_url":"https://github.com/boweihan/spring-boot-auth-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boweihan%2Fspring-boot-auth-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boweihan%2Fspring-boot-auth-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boweihan%2Fspring-boot-auth-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boweihan%2Fspring-boot-auth-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boweihan","download_url":"https://codeload.github.com/boweihan/spring-boot-auth-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245616500,"owners_count":20644656,"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":["gradle","javascript","server","spring","springboot"],"created_at":"2024-12-04T06:11:33.134Z","updated_at":"2025-12-30T23:24:17.424Z","avatar_url":"https://github.com/boweihan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2\u003eConvenience.\u003c/h2\u003e\n\u003ci\u003e“The state of convenience lies in the hands of proper planning.\nWhen you know this, you will become a good planner;\nand when you become a good planner, you save your life from stress!”\u003c/i\u003e\n- \u003cb\u003eIsraelmore Ayivor\u003c/b\u003e\n\u003cbr/\u003e\n\u003ch1\u003ebasic-spring-boot-server\u003c/h1\u003e\n\u003cb\u003ebasic-spring-boot-server\u003c/b\u003e presents an opioninated implementation of\na generic Java backend. The purpose is to provide a groundwork on which real ideas\nand applications can be prototyped.\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003ch2\u003eWhat's Included?\u003c/h2\u003e\n\u003cul\u003e\n    \u003cli\u003eSpring Framework REST implementation and functionality\u003c/li\u003e\n    \u003cli\u003eJetty as our HTTP server\u003c/li\u003e\n    \u003cli\u003eSpring Boot Actuator for production metrics and endpoints\u003c/li\u003e\n    \u003cli\u003eUser/Role basic authentication and authorization\u003c/li\u003e\n    \u003cli\u003eSecure field encryption (Bcrypt)\u003c/li\u003e\n    \u003cli\u003eSpring Data with Hibernate ORM for data access management\u003c/li\u003e\n    \u003cli\u003eUnit tests that run on build\u003c/li\u003e\n    \u003cli\u003eDB Seeding\u003c/li\u003e\n    \u003cli\u003eCustom exceptions and exception handling\u003c/li\u003e\n    \u003cli\u003ePostgres as a database\u003c/li\u003e\n\u003c/ul\u003e\n\u003cbr/\u003e\n\u003ch2\u003eHow do I use it?\u003c/h2\u003e\n\u003cb\u003ebasic-spring-boot-server\u003c/b\u003e uses gradle as a build tool. First, start by creating a gradle wrapper:\u003cbr/\u003e\n\u003cbr/\u003e\u003cb\u003e\u003ci\u003eWrapper: gradle wrapper --gradle-version 2.13\u003c/i\u003e\u003c/b\u003e\n\u003cbr/\u003e\u003cbr/\u003e\nNext, build the project with gradle:\n\u003cbr/\u003e\u003cbr/\u003e\n\u003cb\u003e\u003ci\u003e./gradlew build\u003c/i\u003e\u003c/b\u003e\n\u003cbr/\u003e\u003cbr/\u003e\nLastly, start up your server!\n\u003cbr/\u003e\u003cbr/\u003e\n\u003cb\u003e\u003ci\u003ejava -jar build/libs/gs-spring-boot-0.1.0.jar\u003c/i\u003e\u003c/b\u003e\n\u003cbr/\u003e\u003cbr/\u003e\nOr execute both commands at once :)\n\u003cbr/\u003e\u003cbr/\u003e\n\u003cb\u003e\u003ci\u003e./gradlew build \u0026\u0026 java -jar build/libs/gs-spring-boot-0.1.0.jar\u003c/i\u003e\u003c/b\u003e\n\u003cbr/\u003e\u003cbr/\u003e\nIf this didn't work right away, you might need to configure your local postgres database (next section).\n\u003cbr/\u003e\u003cbr/\u003e\n\u003ch2\u003eConfiguring PostgreSQL to work with basic-spring-boot-server\u003c/h2\u003e\nLocal DB configuration can be found in application.yml. Replace the existing properties with your local\nPostgreSQL config. For example:\u003cbr/\u003e\u003cbr/\u003e\nurl=jdbc:postgresql://localhost:5432/YOUR_DATABASE_NAME\u003cbr/\u003e\nusername=YOUR_USERNAME\u003cbr/\u003e\npassword=YOUR_PASSWORD\n\u003cbr/\u003e\u003cbr/\u003e\n\u003ch2\u003eDeployment\u003c/h2\u003e\n\u003cb\u003ebasic-spring-boot-server\u003c/b\u003e is configured to work with Heroku out of the box.\nTo deploy the application to your Heroku account simply follow the instructions here:\n\u003cbr/\u003e\u003cbr/\u003e\nhttps://devcenter.heroku.com/articles/deploying-gradle-apps-on-heroku\n\u003cbr/\u003e\u003cbr/\u003e\nBase production configurations are set up in application.yml.\n\u003cbr/\u003e\u003c/br/\u003e\n\u003ch2\u003eNotes\u003c/h2\u003e\n- Server is configured to run on port 8080\u003cbr/\u003e\n- API security management is configured in WebSecurityConfig.java\u003cbr/\u003e\n- On startup, your database will be seeded with an admin user (\"admin\"/\"admin@bsbs.com\")\u003c/br\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboweihan%2Fspring-boot-auth-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboweihan%2Fspring-boot-auth-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboweihan%2Fspring-boot-auth-boilerplate/lists"}