Skip to content

Repository files navigation

desafio-microsservicos

🚀 Projeto

Integração entre diferentes microsserviços de um e-commerce, com mensageria e observabilidade. Projeto do curso de Microsserviços da @Rocketseat, feito em set/25.

drizzle rabbitMQ jaeger kong

🛠️ Tecnologias

🗂️ Utilização

🐑🐑 Clonando o repositório:

  $ git clone url-do-projeto.git

▶️ Rodando o App:

  $ cd desafio-microsservicos     # change to that directory
  $ cd path-to-a-microsservice    # change to that directory
  $ cd app-orders                 # ex
  • Terminal 1: Server
  # V1: run @ localhost
  $ npm install     # download dependencies
  $ npm run dev     # start the project by running the package.json script

  # V2: run @ Docker
  $ docker build -t name-of-docker-image .    # build the image
  $ docker build -t service-orders .          # ex
  $ docker run [flags] name-of-docker-image   # run the container
  $ docker run -p 3333:3333 service-orders    # ex
  $ ctrl + C                                  # stop the container
  • Terminal 2: Database
  $ docker compose up         # build the image and runs the container
  $ ctrl + C                  # stop the container
  $ docker compose down       # delete the container
  • Terminal 3: SQL
  $ npx drizzle-kit generate  # create the .sql files based on the db schema
  $ npx drizzle-kit migrate   # execute the SQL commands from the db/migrations files
  $ npx drizzle-kit studio    # db UI (OBS: Safari browsers block access to localhost by default)
  • Terminal 4: Serviços top-level
  # path: root ("docker-compose.yaml" file @ root of dir)
  $ docker compose up         # build the image and runs the container

  # RabbitMQ UI: http://localhost:15672 (user: "guest"; password: "guest")
  # Jaeger UI: http://localhost:16686 
  # Kong UI: http://localhost:8002

About

Integração entre diferentes microsserviços de um e-commerce, com mensageria e observabilidade. Projeto do curso de Microsserviços da @Rocketseat, feito em set/25.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages