Skip to content

rhbarauna/goexpert-desafio-client-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USD to BRL Exchange Rate System

Overview

This system fetches the current exchange rate between the US dollar (USD) and the Brazilian real (BRL). It consists of two components:

  • Server component:

  • Client component:

    • Interacts with the server through the /cotacao endpoint.
    • Retrieves and displays the received exchange rate.
    • Saves the retrieved rate to a file named cotacao.txt.

Components

  • Server:
    • Located in the server/cmd directory.
    • Main program file: server.go.
  • Client:
    • Located in the client/cmd directory.
    • Main program file: client.go.

Prerequisites

Running the System

  1. Start the Server:

    • Navigate to the server/cmd directory.
    • Run the command: go run server.go
  2. Run the Client:

    • Open a separate terminal window.
    • Navigate to the client/cmd directory.
    • Run the command: go run client.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages