Skip to content

Romulomdr/ConvertCoinAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📊 API to convert currency

  • This microservice allows users to register with information such as name, email, preferred currency (USD, EUR, etc.) and balance in reais (BRL). After registration, the system converts the balance into the currency chosen by the user using an external exchange API. An email is then sent to the user containing the converted balance in the specified currencies.

To start

  • 1º Install Java
  • 2º Install PostgreSQL
  • 3º Install Postman or other.
  • 4º Install IDE Spring Tools Suite
  • 5º Import project and run.

📈 Roadmap

  • 1º Flow organization and class diagram.
  • 2º Creating the project using Spring Initializr and adding the necessary dependencies.
  • 3º Creation of the user microservice.
  • 4º Creation of the email microservice.
  • 5º RabbitMQ configuration.
  • 6º Google SMTP configuration.
  • 7º Consumption of the external API for currency conversion.

🚀 Features

  • Create and save the user, and then send the email.
  • Deposit to the user's balance.
  • Get all users.

📋 Class Diagram

ConvertCoinAPI drawio

🚦 Flowchart

  • This is the main flow of microservices where user creation occurs, communication between services using the broker (RabbitMQ), consumption of the external API, sending the email and all data is saved in PostgreSQL. Flowchart Create User

🔗 Routes

  • POST /users -> Create user

Create User

  • GET /users -> Get all users
  • GET /email/{email} -> Get user by e-mail
  • POST /deposit/{email}/{balance} -> Deposit money to a client

✒️ Autor

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published