Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/santosjennifer/microservices-petshop
Serviços eureka-server, gateway-server, ms-pet e ms-person
https://github.com/santosjennifer/microservices-petshop
docker docker-compose java maven mongodb spring-boot spring-cloud
Last synced: 8 days ago
JSON representation
Serviços eureka-server, gateway-server, ms-pet e ms-person
- Host: GitHub
- URL: https://github.com/santosjennifer/microservices-petshop
- Owner: santosjennifer
- Created: 2024-04-09T22:34:27.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-07-06T19:07:34.000Z (6 months ago)
- Last Synced: 2024-11-10T15:26:04.069Z (2 months ago)
- Topics: docker, docker-compose, java, maven, mongodb, spring-boot, spring-cloud
- Language: Java
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![Last Commit](https://img.shields.io/github/last-commit/santosjennifer/microservices-petshop)
## Plataforma para Petshop
Responsável por cadastrar animais e tutores
Repositório com o projeto front-end [petshop-frontend](https://github.com/santosjennifer/petshop-frontend) desenvolvido em React.
### Repositório com os serviços eureka-server, gateway-server, ms-pet e ms-person
- **eureka-server:** responsável por registrar e gerenciar a comunicação dos demais microserviços (gateway-server, ms-person e ms-pet).
- **gateway-server:** responsável gerenciar as rotas do API Gateway.
- **ms-pet:** responsável por cadastrar e retornar os pets/animais e vincular aos tutores/pessoas.
- **ms-person:** responsável por cadastrar e retornar as pessoas/tutores dos pets.
### Tecnologia- Java 21
- Maven
- Spring Boot 3.2.4
- MongoDB
- Docker### Como executar o projeto:
1. Clone o repositório:
```
git clone [email protected]:santosjennifer/microservices-petshop.git
```2. Na raiz do projeto, execute o comando:
```
docker-compose up
```3. Acesse o Eureka Server:
```
http://localhost:8761/eureka
```
### Eureka Server
![image](https://github.com/santosjennifer/microservices-petshop/assets/90192611/607d02e5-eddd-4ad4-a1b0-ce1520c3a7fe)4. Acesse o Swagger do serviço ms-person:
```
http://localhost:8031/swagger-ui/index.html#/
```
### Swagger Person API
![image](https://github.com/santosjennifer/microservices-petshop/assets/90192611/9ec9019c-a85f-49df-96b6-86cd8dbd12a1)5. Acesse o Swagger do serviço ms-pet:
```
http://localhost:8001/swagger-ui/index.html#/
```
### Swagger Animal API
![image](https://github.com/santosjennifer/microservices-petshop/assets/90192611/a76607ef-27fc-4c16-8ad9-4c57572007a5)