Article image
Belisnalva Jesus
Belisnalva Jesus07/06/2023 15:09
Compartilhe

StatesECities-api

  • #Java
Este projeto foi feito na IDE Intellij, com a orientação do Expert André L. Gomes.

Tendo como objetivo a localização através de API: os Países, Estados e Cidades (latitude e longitude).



Tecnologia utilizadas:


Back-end
Java
Jpa/Hibernate
Maven
Spring Boot
Postgresql
H2


Dependências acrescentadas:
flywaydb/flyway-maven-plugin
vladmihalcea/hibernate-types-52

For further reference, please consider the following sections:

Official Apache Maven documentation
Spring Boot Maven Plugin Reference Guide
Spring Web
Spring Configuration Processor


Guides

The following guides illustrate how to use some features concretely:

Building a RESTful Web Service
Serving Web Content with Spring MVC
Building REST services with Spring


Observação: para executar e visualizar o Get, Post, Put and Delet.

Postman

Heroku



Preencher
[dados] (https://github.com/...)

'''Shell script cd ~/workspace/sql-paises-estados-cidades/PostgreSQL

docker run -it --rm --net=host -v $PWD:/tmp postgres /bin/bash

psql -h localhost -U postgres_user_city cidades -f /tmp/pais.sql

psql -h localhost -U postgres_user_city cidades -f /tmp/estado.sql

psql -h localhost -U postgres_user_city cidades -f /tmp/cidade.sql

psql -h localhost -U postgres_user_city cidades




CRIAR CUBO DE EXTENSÃO;

CRIAR EXTENSÃO TERRADISTÂNCIA;




Exemplo de URL

$ jdbc:postgresql://localhost:5432/statesECitiesapidb





Agora é só pôr o seu Projeto no github.com

$  git add .   





$  git  commit -m  "Commit  all  files  for github"





Footnotes
Este projeto foi feito com a orientação do Expert e professor André L. Gomes(DIO.me). 




Segui o meu link:

https://github.com/BelisnalvaCosta/statesECities-api

De a sua opinião para melhorar o código e sugestões. #Juntos podemos :-D

Desde já agradeço!!🤩

Compartilhe
Comentários (0)