{"id":18555694,"url":"https://github.com/romeh/springboot-postgres-embedded-dao-testing","last_synced_at":"2025-04-09T23:32:25.294Z","repository":{"id":137544596,"uuid":"147186836","full_name":"Romeh/springboot-postgres-embedded-dao-testing","owner":"Romeh","description":"an exmaple for spring data DAO unit testing with embeded postgres in spring boot application","archived":false,"fork":false,"pushed_at":"2018-09-03T14:57:21.000Z","size":117,"stargazers_count":4,"open_issues_count":0,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T13:51:16.148Z","etag":null,"topics":["dao","lombok","mapstruct","postgresql","spring-boot","swagger2","unit-testing"],"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/Romeh.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":"2018-09-03T10:06:36.000Z","updated_at":"2025-01-06T15:23:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"087845c1-61af-4ee5-b2db-a8e9f30e15c6","html_url":"https://github.com/Romeh/springboot-postgres-embedded-dao-testing","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/Romeh%2Fspringboot-postgres-embedded-dao-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romeh%2Fspringboot-postgres-embedded-dao-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romeh%2Fspringboot-postgres-embedded-dao-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romeh%2Fspringboot-postgres-embedded-dao-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Romeh","download_url":"https://codeload.github.com/Romeh/springboot-postgres-embedded-dao-testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248129944,"owners_count":21052668,"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":["dao","lombok","mapstruct","postgresql","spring-boot","swagger2","unit-testing"],"created_at":"2024-11-06T21:27:36.820Z","updated_at":"2025-04-09T23:32:25.285Z","avatar_url":"https://github.com/Romeh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Springboot-PostgreSQL-Embedded-Dao-Testing\n### About \n\nThis is a sample application to show how to do DAO unit testing using embedded PostgreSQL DB\nto replicate the same conditions of your production application if you have use PostgreSQL DB.\n\nDetailed explanation can be found in : https://mromeh.com/2018/09/03/spring-boot-with-embedded-postgresql-for-dao-integration-unit-testing-and-local-development/\n\n-------------------\n![alt text](imgs/overview.png)\n\n-------------------\n### Tech stack:\n- Spring boot 2\n- Spring data\n- Spring REST \n- Lombok\n- PostgreSQL\n- Mapstruct for DTO mapping\n- Swagger 2\n-------------------\n### How to compile and install:\nit is a maven project , so just clean and install and should be ready ! \n```sh\nmvn clean install \n```\n-------------------\n### How to run the locally :\n\nOnce you run the spint boot application locally from the main class, you can test the rest API on the browser via SWAGGER\n\n```sh\nhttp://localhost:8080/swagger-ui.html\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromeh%2Fspringboot-postgres-embedded-dao-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromeh%2Fspringboot-postgres-embedded-dao-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromeh%2Fspringboot-postgres-embedded-dao-testing/lists"}