Skip to content

brhrmaster/teste-pratico-mercadolivre

Repository files navigation

teste-pratico-mercadolivre

Architecture Overview

architecture overview

Postman Project

Available Here

Creating Orders

These are the components involved when creating new Orders create order

Getting Orders

These are the components involved when getting created Orders create order

Running the application

Build

Before running the applications, it is important to have an image of SpringBoot app built

cd bff-orders-api

chmod +x ./gradlew

./gradlew clean build test

docker build -t XPTO/bff-orders-api:1234 .

cd ..

same for BFB app

docker build -t XPTO/bfb-distribution-center-svc:1234 ./bfb-distribution-center-svc

It is recommended to have Docker Desktop or Rancher Desktop when a single node K8S cluster or a docker environment available to run the application

Kubernetes

In order to have the application running in a K8S cluster make sure you have Helm installed

Installing Helm distribution:

helm install desafio-mercadolivre k8s-distribution

Then check if all objects are available

kubectl get all --namespace teste-pratico-mercadolivre

After setup, access the database from Azure Data Studio, and execute the sql file available here

And use this Postman collection to execute the APIs' endpoints

Docker

Just run docker-compose

docker-compose up -d

If you have permission issues with volume folder, give docker permission

sudo chown -R 10001:10001 ./mssql-server/volume
sudo chmod -R 775 ./mssql-server/volume

Load Testing using K6 framework

Load Testing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors