coin-conv-go

command module
v0.0.0-...-f5200a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 11 Imported by: 0

README

coin-conv-go

a simple backend developed in golang to convert one currency into another. Application developed for study purposes and mainly to pass interviews.

mysql commit to up the database:

docker run --detach --name=coinconvgodb --env="MYSQL_ROOT_PASSWORD=rootpass" --env="MYSQL_PASSWORD=password" --env="MYSQL_USER=user" --env="MYSQL_DATABASE=coinconvgo" --publish 3306:3306 --volume=$(pwd)/init.sql:/docker-entrypoint-initdb.d/init.sql mysql:5.7

route of the aplication

/exchange/:amount/:from/:to/:rate

possible currencies to exchange

real dollar euro btc

example of request

/exchange/10/real/dollar/4.5

{
	"simboloMoeda": "$",
	"valorConvertido": 45
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL