{"id":21178031,"url":"https://github.com/thallyta-castro-cv/cities-api-java","last_synced_at":"2026-05-08T09:33:31.951Z","repository":{"id":134406811,"uuid":"423612254","full_name":"thallyta-castro-cv/cities-api-java","owner":"thallyta-castro-cv","description":"Neste projeto foi desenvolvido uma API Rest de consulta de cidades do Brasil com dados comparativos em Java, SpringBoot e SpringData.","archived":false,"fork":false,"pushed_at":"2022-02-06T15:56:04.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-25T23:35:59.484Z","etag":null,"topics":["hibernate","java","postgres","postgresql","spring-boot","spring-data","sql"],"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/thallyta-castro-cv.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":"2021-11-01T20:50:08.000Z","updated_at":"2022-02-06T15:54:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"343beacc-a1cf-44ff-b116-cd922b678c02","html_url":"https://github.com/thallyta-castro-cv/cities-api-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thallyta-castro-cv/cities-api-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thallyta-castro-cv%2Fcities-api-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thallyta-castro-cv%2Fcities-api-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thallyta-castro-cv%2Fcities-api-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thallyta-castro-cv%2Fcities-api-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thallyta-castro-cv","download_url":"https://codeload.github.com/thallyta-castro-cv/cities-api-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thallyta-castro-cv%2Fcities-api-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32774927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["hibernate","java","postgres","postgresql","spring-boot","spring-data","sql"],"created_at":"2024-11-20T17:19:31.803Z","updated_at":"2026-05-08T09:33:31.933Z","avatar_url":"https://github.com/thallyta-castro-cv.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Desafio API para consulta de cidades do Brasil com Java\n![NPM](https://img.shields.io/npm/l/react)\n\n# Sobre o projeto\nProjeto desenvolvido para o bootcamp Quality Assurence Beginner #3 da Everis NTT Data.\n\nNeste projeto foi desenvolvido uma API Rest de consulta de cidades do Brasil com dados comparativos em Java, SpringBoot e SpringData.\n\n# Tecnologias Utilizadas\n\n##### Framework do Projeto\n- [Spring Initializr](https://start.spring.io/ \"Spring Initializr\")\n- **Project:** Gradle Project\n- **Language:** Java\n\n##### Project Metadata\n- **Group:** com.github.thallytacastrocv\n- **Artifact:** cities-api\n- **Name:** cities-api\n- **Description:** Demo Project for Spring Boot\n- **Package name:** com.github.thallytacastrocv.cities-api\n- **Packaging:** Jar\n- **Java:** 8\n\n# Requisitos para desenvolvimento do projeto\n\n* Linux\n* Git\n* Java 8\n* Docker\n* IntelliJ Community\n* Heroku CLI\n\n\n### Spring Boot\n\n* [https://start.spring.io/](https://start.spring.io/)\n\n+ Java 8\n+ Gradle Project\n+ Jar\n+ Spring Web\n+ Spring Data JPA\n+ PostgreSQL Driver\n\n### Spring Data\n\n* [jpa.query-methods](https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#jpa.query-methods)\n\n### Propriedades\n\n* [appendix-application-properties](https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html)\n* [jdbc-database-connectio](https://www.codejava.net/java-se/jdbc/jdbc-database-connection-url-for-common-databases)\n\n### Tipos\n\n* [JsonTypes](https://github.com/vladmihalcea/hibernate-types)\n* [UserType](https://docs.jboss.org/hibernate/orm/3.5/api/org/hibernate/usertype/UserType.html)\n\n### Heroku\n\n* [DevCenter](https://devcenter.heroku.com/articles/getting-started-with-gradle-on-heroku)\n\n### Qualidade de código\n\n#### PMD\n\n+ https://pmd.github.io/pmd-6.8.0/index.html\n\n# Como executar o projeto\n\n## Banco de dados\n\n### Postgres\n\n* [Postgres Docker Hub](https://hub.docker.com/_/postgres)\n\n```shell script\ndocker run --name cities-db -d -p 5432:5432 -e POSTGRES_USER=postgres_user_city -e POSTGRES_PASSWORD=super_password -e POSTGRES_DB=cities postgres\n```\n\n### Populate\n\n* [data](https://github.com/chinnonsantos/sql-paises-estados-cidades/tree/master/PostgreSQL)\n\n```shell script\ncd ~/workspace/sql-paises-estados-cidades/PostgreSQL\n\ndocker run -it --rm --net=host -v $PWD:/tmp postgres /bin/bash\n\npsql -h localhost -U postgres_user_city cities -f /tmp/pais.sql\npsql -h localhost -U postgres_user_city cities -f /tmp/estado.sql\npsql -h localhost -U postgres_user_city cities -f /tmp/cidade.sql\n\npsql -h localhost -U postgres_user_city cities\n\nCREATE EXTENSION cube; \nCREATE EXTENSION earthdistance;\n```\n\n* [Postgres Earth distance](https://www.postgresql.org/docs/current/earthdistance.html)\n* [earthdistance--1.0--1.1.sql](https://github.com/postgres/postgres/blob/master/contrib/earthdistance/earthdistance--1.0--1.1.sql)\n* [OPERATOR \u003c@\u003e](https://github.com/postgres/postgres/blob/master/contrib/earthdistance/earthdistance--1.1.sql)\n* [postgrescheatsheet](https://postgrescheatsheet.com/#/tables)\n* [datatype-geometric](https://www.postgresql.org/docs/current/datatype-geometric.html)\n\n\n```shell script\ndocker exec -it cities-db /bin/bash\n\npsql -U postgres_user_city cities\n```\n\n### Query para consultar distancia da terra\n\nPoint\n```roomsql\nselect ((select lat_lon from cidade where id = 4929) \u003c@\u003e (select lat_lon from cidade where id=5254)) as distance;\n```\n\nCube\n```roomsql\nselect earth_distance(\n    ll_to_earth(-21.95840072631836,-47.98820114135742), \n    ll_to_earth(-22.01740074157715,-47.88600158691406)\n) as distance;\n```\n\n\n\n### Checkstyle\n\n+ https://checkstyle.org/\n\n+ https://checkstyle.org/google_style.html\n\n+ http://google.github.io/styleguide/javaguide.html\n\n```shell script\nwget https://raw.githubusercontent.com/checkstyle/checkstyle/master/src/main/resources/google_checks.xml\n```\n\n# Autor\n\n\u003cb\u003eThallyta Macedo Carvalho de Castro\u003c/b\u003e\n\nLinkedin: [https://www.linkedin.com/in/thallyta-castro/](https://www.linkedin.com/in/thallyta-castro/)\n\nMedium: [https://medium.com/@thallyta-castro-cv](https://medium.com/@thallyta-castro-cv)\n\nemail: [contato@thallytacastro.com.br](mailto:contato@thallytacastro.com.br)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthallyta-castro-cv%2Fcities-api-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthallyta-castro-cv%2Fcities-api-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthallyta-castro-cv%2Fcities-api-java/lists"}