{"id":21461520,"url":"https://github.com/zix99/jpa-example","last_synced_at":"2025-06-28T21:37:36.820Z","repository":{"id":35315956,"uuid":"39577534","full_name":"zix99/jpa-example","owner":"zix99","description":"Simple JPA Example with postgres database","archived":false,"fork":false,"pushed_at":"2015-08-03T15:42:27.000Z","size":201,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T04:49:27.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zix99.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}},"created_at":"2015-07-23T16:09:28.000Z","updated_at":"2015-07-23T16:11:35.000Z","dependencies_parsed_at":"2022-09-17T06:21:15.824Z","dependency_job_id":null,"html_url":"https://github.com/zix99/jpa-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zix99/jpa-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zix99%2Fjpa-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zix99%2Fjpa-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zix99%2Fjpa-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zix99%2Fjpa-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zix99","download_url":"https://codeload.github.com/zix99/jpa-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zix99%2Fjpa-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262503155,"owners_count":23321181,"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":[],"created_at":"2024-11-23T07:09:30.589Z","updated_at":"2025-06-28T21:37:36.800Z","avatar_url":"https://github.com/zix99.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example Simple \"Identity\" Service\n\nThis is a very very simple identity REST-ish service that has a backend DB.  I'll be adding more to it as I go.\n\nAs time went on, this became more of my test-bed service.  A lot of the libraries and integrations work just fine,\nbut you generally shouldn't take this as a code-style recommendation or \"way of doing things\".\n\n## Requirements:\n\nNOTE: If you have a version of boot2docker 1.7.1, talk to me, we'll need to get you situated.\n\n1. Use Brew. If you don't use brew, I won't help you\n2. [brew install caskroom/cask/brew-cask](https://github.com/caskroom/homebrew-cask)\n3. brew cask install virtualbox (Verify you install 5.x)\n4. brew install boot2docker\n5. Download the java8 jdk. We will be using 8 for all services\n\nWhen you install boot2docker, make sure you add the following line to your .bash_profile and/or .bashrc\n    eval \"$(boot2docker shellinit)\"\n\n## Setup:\n\n### Create docker postgres image\n1. docker pull postgres:latest\n2. docker create --name postgres -p 5433:5432 -e POSTGRES_PASSWORD=testbox postgres:latest\n3. docker start -a postgres\n\nWhy port 5433 for forwarding?\n * Won't conflict with local postgres install\n * Because I could \n\n### Modify properties\nModify the `application.properties` file to reflect the correct DB host.\n\n### Migrating the database\n    ./gradlew flywayMigrate\n\n### Start service\n    ./gradlew bootRun\n\n### Start tests in container\n    docker-compose run --rm test\n\n### Hit the endpoint\ncurl -X POST http://yourdockerhost:8080/identity?external_id=123\u0026partner_id=abc\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzix99%2Fjpa-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzix99%2Fjpa-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzix99%2Fjpa-example/lists"}