{"id":20511226,"url":"https://github.com/ravindrasinghh/spring3hibenatee","last_synced_at":"2025-04-13T22:41:45.305Z","repository":{"id":37311807,"uuid":"203997265","full_name":"ravindrasinghh/spring3hibenatee","owner":"ravindrasinghh","description":"Deployment to Kubernetes cluter using Jenkins Pipeline.","archived":false,"fork":false,"pushed_at":"2022-12-15T23:32:19.000Z","size":66,"stargazers_count":0,"open_issues_count":13,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T13:01:47.515Z","etag":null,"topics":["cicd","docker","docker-image","java-application","jenkins-pipeline","kubernetes-deployment","mysql"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ravindrasinghh.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}},"created_at":"2019-08-23T12:47:48.000Z","updated_at":"2025-01-12T14:15:28.000Z","dependencies_parsed_at":"2023-01-29T05:15:45.243Z","dependency_job_id":null,"html_url":"https://github.com/ravindrasinghh/spring3hibenatee","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/ravindrasinghh%2Fspring3hibenatee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravindrasinghh%2Fspring3hibenatee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravindrasinghh%2Fspring3hibenatee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravindrasinghh%2Fspring3hibenatee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ravindrasinghh","download_url":"https://codeload.github.com/ravindrasinghh/spring3hibenatee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794548,"owners_count":21162613,"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":["cicd","docker","docker-image","java-application","jenkins-pipeline","kubernetes-deployment","mysql"],"created_at":"2024-11-15T20:35:09.521Z","updated_at":"2025-04-13T22:41:45.277Z","avatar_url":"https://github.com/ravindrasinghh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring3Hibernate - A OpsTree Sample Maven based Java Application\n\nThe main goal of this awesome Java Webapp is to encourage people to dive deep in Java Application Architecture and how we can make delivery pipeline faster, easier and much reliable using **Continous Integration**.\n\n## Dependencies\n\nThe list of dependencies are not quite long but yes we do have some dependencies.\n\n- [X] **Maven 3.X**\n- [X] **Java 8**\n- [X] **MySQL**\n- [X] **Docker**(Only if you are willing to create a Dockerized Setup)\n\n## Needs to be Taken Care\nThis application connects with MySQL database. If you want to have a full-fledged running application, just do me a favor and edit these properties according to your database environment.\n\n```properties\ndatabase.driver=com.mysql.jdbc.Driver\ndatabase.url=jdbc:mysql://mysql.okts-test:3306/employeedb\ndatabase.user=root\ndatabase.password=password\nhibernate.dialect=org.hibernate.dialect.MySQLDialect\nhibernate.show_sql=true\nhibernate.hbm2ddl.auto=update\nupload.dir=c:/uploads\n```\n\n**Note:- The location of file is [src/main/resources/database.properties](src/main/resources/database.properties)**\n\n## How to Run\n\n#### Manual Setup\n\nRunning this application manually is pretty straight forward.\n\n**For Compilation**\n\n```shell\nmvn clean package\n```\n\n**For Unit Tests**\n\n```shell\nmvn test\n```\n\n**For Deploying Artifact on Remote Repository**\n\n```shell\nmvn deploy\n```\n\nThere is some other cool stuff as well but I leave that up to you to explore it.\n\n#### Dockerized Setup\n\nDockerized setup is much classier than manual setup. To achieve this you just have to do this:-\n\n```shell\ndocker build -t opstree/spring3hibernate:latest -f Dockerfile .\n```\n\nThat's it. It will create Tomcat Image having the war itself. Now just go and deploy the docker image anywhere you want.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravindrasinghh%2Fspring3hibenatee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fravindrasinghh%2Fspring3hibenatee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravindrasinghh%2Fspring3hibenatee/lists"}