{"id":21712248,"url":"https://github.com/ashutoshsahoo/book-service","last_synced_at":"2026-04-19T19:05:07.143Z","repository":{"id":43256006,"uuid":"264409176","full_name":"ashutoshsahoo/book-service","owner":"ashutoshsahoo","description":"Book service with spring security enabled","archived":false,"fork":false,"pushed_at":"2024-07-19T18:07:48.000Z","size":134,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-20T18:26:07.491Z","etag":null,"topics":["flyway","flyway-postgresql","h2","hazelcast","jib-maven-plugin","jwt-authentication","jwt-bearer-tokens","kubenetes","kubenetes-hazelcast","postgreql","postman-collection","spring-boot","spring-security","spring-sleuth","tracing"],"latest_commit_sha":null,"homepage":"","language":"Java","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/ashutoshsahoo.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":"2020-05-16T10:08:13.000Z","updated_at":"2024-08-19T10:34:17.000Z","dependencies_parsed_at":"2024-07-19T21:10:22.044Z","dependency_job_id":null,"html_url":"https://github.com/ashutoshsahoo/book-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashutoshsahoo/book-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshsahoo%2Fbook-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshsahoo%2Fbook-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshsahoo%2Fbook-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshsahoo%2Fbook-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashutoshsahoo","download_url":"https://codeload.github.com/ashutoshsahoo/book-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshsahoo%2Fbook-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32018765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["flyway","flyway-postgresql","h2","hazelcast","jib-maven-plugin","jwt-authentication","jwt-bearer-tokens","kubenetes","kubenetes-hazelcast","postgreql","postman-collection","spring-boot","spring-security","spring-sleuth","tracing"],"created_at":"2024-11-25T23:36:24.730Z","updated_at":"2026-04-19T19:05:07.125Z","avatar_url":"https://github.com/ashutoshsahoo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Book Service\n\nSample project to use spring boot with\n\n- Spring security and JWT\n- Spring data jpa\n- flyway\n- postgresql\n- h2\n- hazelcast\n- jib maven plugin\n- kubernetes\n\n## Build the project\n\nEnsure kubernetes and docker environment variables set.\n\n```shell\n\nmvn clean package -DskipTests\n\n```\n\n## Enable Hazelcast Kubernetes discovery\n\n```shell\n\nkubectl apply -f kubernetes-rbac.yaml\n```\n\n## Deploy application\n\n```shell\n\nkubectl apply -f secrets.yaml\nkubectl apply -f postgres-deployment.yaml\nkubectl apply -f authentication/deployment.yaml\nkubectl apply -f service/deployment.yaml\n\n```\n\nIt will take some time to start the application, To check application status:\n\n```shell\n\nkubectl get po,svc\n\n```\n\nThe output should be like:\n\n```shell\n\nNAME                                READY   STATUS    RESTARTS   AGE\npod/auth-service-7459958db-kd58f    1/1     Running   0          6m25s\npod/auth-service-7459958db-sjvsb    1/1     Running   0          6m25s\npod/book-service-776bdbf7bb-f9jnq   1/1     Running   0          5m59s\npod/book-service-776bdbf7bb-hcqx2   1/1     Running   0          5m59s\npod/postgres-779fdfc844-bxt8n       1/1     Running   0          71m\n\nNAME                             TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)        AGE\nservice/auth-service             NodePort    10.102.102.133   \u003cnone\u003e        80:31001/TCP   6m25s\nservice/book-service             NodePort    10.105.109.185   \u003cnone\u003e        80:31002/TCP   5m59s\nservice/hazelcast-auth-service   ClusterIP   10.105.22.147    \u003cnone\u003e        5701/TCP       6m25s\nservice/hazelcast-book-service   ClusterIP   10.103.55.1      \u003cnone\u003e        5701/TCP       5m59s\nservice/kubernetes               ClusterIP   10.96.0.1        \u003cnone\u003e        443/TCP        35d\nservice/postgres-service         ClusterIP   10.105.241.167   \u003cnone\u003e        5432/TCP       71m\n\n```\n\n## Test application\n\nUse the provided postman collection to test the application.\n\n## Check database setup with pgAdmin4\n\n```shell\n\nkubectl apply -f pgadmin4-deployment.yaml\n\n```\n\nOpen [http://KUBERNETES_NODE_IP:31000](http://localhost:31000) in browser and login with `pgadmin@example.org`\nand `changeme`. Select servers (on left pane) and input password as `changeme`.\n\n## Clean up system\n\n```shell\n\nkubectl delete -f service/deployment.yaml\nkubectl delete -f authentication/deployment.yaml\nkubectl delete -f pgadmin4-deployment.yaml\nkubectl delete -f postgres-deployment.yaml\nkubectl delete -f secrets.yaml\n\n```\n\n## Script to start and stop the deployment\n\nUse the provided scripts `start-deployment.sh` and `stop-deployment.sh` to start and stop the deployment respectively.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashutoshsahoo%2Fbook-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashutoshsahoo%2Fbook-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashutoshsahoo%2Fbook-service/lists"}