https://github.com/fbiville/currency-conversion
https://github.com/fbiville/currency-conversion
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fbiville/currency-conversion
- Owner: fbiville
- License: apache-2.0
- Created: 2022-07-27T15:00:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-22T17:39:15.000Z (almost 3 years ago)
- Last Synced: 2025-02-10T09:13:02.430Z (5 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Currency converter API
## Prereqs
Install the latest [Go version](https://go.dev/).## Run
### Start Server
```go
go run ./cmd/server
```### Run Client
Send a currency conversion request:
```shell
curl --header 'Content-Type: application/json' \
--data '{"sourceCurrency": "EUR", "sourceValue": 7000, "targetCurrency": "TRY"}' \
'http://[::]:65012'
```Note: replace the address by the actual address printed by the first command.