{"id":51153496,"url":"https://github.com/h3nrique/postalcode-spawn-demo","last_synced_at":"2026-06-26T08:30:33.400Z","repository":{"id":198770047,"uuid":"697356949","full_name":"h3nrique/postalcode-spawn-demo","owner":"h3nrique","description":"Java demo project using Spawn to find postal codes at ViaCEP.","archived":false,"fork":false,"pushed_at":"2024-11-12T23:09:55.000Z","size":114,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-12T23:19:10.851Z","etag":null,"topics":["container","java","kubernetes","openshift","serverless","spawn"],"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/h3nrique.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":"2023-09-27T15:04:32.000Z","updated_at":"2024-08-28T14:40:50.000Z","dependencies_parsed_at":"2024-09-14T06:33:32.386Z","dependency_job_id":"d454d0e9-91d7-45c1-9f3e-7f66bd8651d3","html_url":"https://github.com/h3nrique/postalcode-spawn-demo","commit_stats":null,"previous_names":["h3nrique/postalcode-spawn-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/h3nrique/postalcode-spawn-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3nrique%2Fpostalcode-spawn-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3nrique%2Fpostalcode-spawn-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3nrique%2Fpostalcode-spawn-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3nrique%2Fpostalcode-spawn-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h3nrique","download_url":"https://codeload.github.com/h3nrique/postalcode-spawn-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3nrique%2Fpostalcode-spawn-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34809886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"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":["container","java","kubernetes","openshift","serverless","spawn"],"created_at":"2026-06-26T08:30:32.911Z","updated_at":"2026-06-26T08:30:33.387Z","avatar_url":"https://github.com/h3nrique.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postalcode Spawn Demo\n\nJava demo project using [Spawn](https://github.com/eigr/spawn) to find postal codes at [ViaCEP](https://viacep.com.br).\n\n## Test\nBefore running the Maven command, ensure that a container environment (Docker/Podman) is running.\n\n```bash\nmvn test\n```\n\n## Start local environment\n\n```bash\ndocker compose up\n```\n\n## Test local environment\n\n```bash\n# Request PostalCode\ncurl -v -H 'Content-Type: application/json' -d '{ \"postalCode\": \"03568000\" }' 'http://localhost:8080/postalcode'\n\n# Get PostalCode info\ncurl -v 'http://localhost:8080/postalcode/03568000'\n```\n\n## To deploy on Openshift with Openshift Pipeline (Tekton)\n\n```bash\noc create ns spawn\noc process openshift//mysql-persistent -p MYSQL_USER=admin -p MYSQL_PASSWORD=admin -p MYSQL_ROOT_PASSWORD=mypassword -p MYSQL_DATABASE=eigr | oc create -n spawn -f -\noc create secret generic mysql-connection-secret -n eigr-functions --from-literal=database=eigr --from-literal=host='mysql.spawn.svc.cluster.local' --from-literal=port='3306' --from-literal=username='admin' --from-literal=password='admin' --from-literal=encryptionKey=$(openssl rand -base64 32)\ntee actorsystem.yaml \u003c\u003c END\napiVersion: spawn-eigr.io/v1\nkind: ActorSystem\nmetadata:\n  name: spawn-demo\n  labels:\n    app: spawn-demo\nspec:\n#  selector:\n#    app: spawn-demo\n  statestore:\n    type: MySql\n    credentialsSecretRef: mysql-connection-secret\n    pool:\n      size: \"10\"\nEND\noc create -f actorsystem.yaml -n spawn\noc create -f openshift-pipeline.yaml -n spawn\noc create role actorhost-pipeline --verb='*' --resource='actorhosts,actorsystems' -n spawn\noc create rolebinding actorhost-pipeline --role=actorhost-pipeline --serviceaccount=spawn:pipeline -n spawn\n# If you want to expose actor service with route command\noc create route edge postalcode --service=postalcode-spawn-demo --port=8080\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh3nrique%2Fpostalcode-spawn-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh3nrique%2Fpostalcode-spawn-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh3nrique%2Fpostalcode-spawn-demo/lists"}