Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fbiville/currency-conversion
https://github.com/fbiville/currency-conversion
Last synced: 17 days 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-22T17:39:15.000Z (about 2 years ago)
- Last Synced: 2024-10-09T07:22:48.597Z (about 1 month 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.