{"id":15784465,"url":"https://github.com/sueszli/spring-boilerplate","last_synced_at":"2026-05-20T05:41:46.285Z","repository":{"id":204994403,"uuid":"676288934","full_name":"sueszli/spring-boilerplate","owner":"sueszli","description":"boilerplate code for spring boot crud apps with SSE","archived":false,"fork":false,"pushed_at":"2024-04-18T10:39:12.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-11T20:10:16.005Z","etag":null,"topics":["ag-grid","java-concurrency","server-sent-events","spring-boot","sse"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/sueszli.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-08-08T21:39:36.000Z","updated_at":"2024-04-18T10:39:25.000Z","dependencies_parsed_at":"2024-10-26T09:20:15.522Z","dependency_job_id":null,"html_url":"https://github.com/sueszli/spring-boilerplate","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":0.4,"last_synced_commit":"3f533ae471589001ed872cff10cf105950cfde01"},"previous_names":["sueszli/spring-boilerplate"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sueszli%2Fspring-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sueszli%2Fspring-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sueszli%2Fspring-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sueszli%2Fspring-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sueszli","download_url":"https://codeload.github.com/sueszli/spring-boilerplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246506281,"owners_count":20788629,"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":["ag-grid","java-concurrency","server-sent-events","spring-boot","sse"],"created_at":"2024-10-04T20:03:38.281Z","updated_at":"2026-05-20T05:41:46.208Z","avatar_url":"https://github.com/sueszli.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"boilerplate code for a crud application with the following stack:\n\n- vanilla js (served by spring boot through `src/main/resources/static`)\n    - AG-Grid\n    - toastr.js\n    - axios\n- spring boot\n    - maven\n    - hibernate, JPA (the JOOQ driver would have been better, but it isn't free for oracle DB)\n    - lombok, mapstruct\n- h2 database\n- sse (server sent events) based broadcast and subscription mechanism to allow concurrent writes\n\n# usage\n\n\u003cimg src=\"https://github.com/sueszli/springBootBoilerplate/assets/61852663/bd2248e0-1b13-49fc-91b2-67ae87244227\"\u003e\n\n```bash\n#\n# build\n#\n\n# install dependencies (and ignore ssl errors in case you are behind a proxy)\nmvn clean install -Dmaven.resolver.transport=wagon -Dmaven.clean.failOnError=false -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true -Dhttps.protocols=TLSv1.2\n\n# list dependencies\nmvn dependency:tree\n\n# run with \"test\" profile\nmvn spring-boot:run -Dspring-boot.run.profiles=test\n\n#\n# testing\n#\n\n# create\ncurl  -X POST http://localhost:8080/api/v1/duck \\\n      -H 'Content-Type: application/json' \\\n      -d '{ \"firstName\":\"larry\", \"secondName\": \"larson\" }'\n\n# read\ncurl  -X GET http://localhost:8080/api/v1/duck/1\ncurl  -X GET http://localhost:8080/api/v1/duck | json_pp\n\n# update\ncurl  -X PUT http://localhost:8080/api/v1/duck \\\n      -H 'Content-Type: application/json' \\\n      -d '{ \"id\": 1, \"firstName\":\"updated\", \"secondName\":\"updated\" }'\n\n# delete\ncurl  -X DELETE http://localhost:8080/api/v1/duck/1\ncurl  -X DELETE http://localhost:8080/api/v1/duck\n\n# sse broadcast\ncurl  -X POST http://localhost:8080/api/v1/sse/broadcast/hello%20everyone!\n\n# sse subscribe\ncurl  -X GET http://localhost:8080/api/v1/sse/subscription\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsueszli%2Fspring-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsueszli%2Fspring-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsueszli%2Fspring-boilerplate/lists"}