Skip to content

🚀 Golang, Go Fiber, RabbitMQ, MongoDB, Docker, Kubernetes, GitHub Actions and Digital Ocean

Notifications You must be signed in to change notification settings

JailtonJunior94/bookings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bookings

Solução de cadastro de usuários e reservas.

Tecnologias Utilizadas

  1. Golang
  2. MongoDB
  3. RabbitMQ
  4. Github Actions
  5. Docker Hub
  6. Docker
  7. Kubernetes
  8. Digital Ocean
  9. Minikube

Desenho da Solução

Funcionalidades

  1. Registrar Usuário
  2. Autenticar Usuário
  3. Criar Reservas por Usuário
  4. Listar Reservas por Usuário

Executar em ambiente local (Docker Compose)

Na raiz do projeto executar o seguinte comando:

docker-compose up -d 

Executar em ambiente local (Minikube)

  1. Para iniciar o ambiente minikube (local)
    minikube start
    
  2. Para aplicar os manifestos do k8s
    kubectl apply -f .\.k8s\namespaces\ -R
    kubectl apply -f .\.k8s\deployments\ -R -n bookings
    kubectl apply -f .\.k8s\services\ -R -n bookings
    
  3. Habilitar dashboard kubernetes
    minikube dashboard
    
  4. Habilitar portas dos serviços para utilizar localmente
    minikube service mongodb-service -n bookings
    minikube service rabbitmq-service -n bookings
    minikube service booking-api-service -n bookings
    
  5. Alternando entre contextos
    kubectl config get-contexts
    kubectl config use-context (nome do contexto)
    
  6. Listando pods
    kubectl get pods -n bookings
    
  7. Listando services
    kubectl get svc -n bookings
    
  8. Listando hpa (HorizontalPodAutoscaler)
    kubectl get hpa -n bookings
    

Postman (Collection)

https://www.getpostman.com/collections/e41fab194222bd5fc9c3

About

🚀 Golang, Go Fiber, RabbitMQ, MongoDB, Docker, Kubernetes, GitHub Actions and Digital Ocean

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published