Categorygithub.com/dropdevrahul/exchange-rates-go
modulepackage
0.0.2
Repository: https://github.com/dropdevrahul/exchange-rates-go.git
Documentation: pkg.go.dev

# README

Exchange Currencies Rate

A go utility/library to fetch currencies using exchangeratesapi.io Please register on this site to get an API Key

Dependencies

  • Database

  • Please install goose globally to run migrations using

go install github.com/pressly/goose/v3/cmd/goose@latest

Run

  • copy .env.example file to .env and replace API_KEY with your own which can be obtained by the linked website above

  • Start the db using docker, please make sure docker is allowed to create /var/db/data directory, create the directory /var/db/data using sudo

sudo mkdir -p /var/db/data 
sudo chown -R $USER:$USER /var/db/data
docker compose up -d
  • Migrate the Database
make migrate-db
  • Run the command
make run

This should fetch the details from the API and save them to DB and display the results from DB

# Packages

No description provided by the author

# Functions

No description provided by the author

# Constants

Currencies.
Currencies.
Currencies.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

last 10 days will be donated by string 'yyyy-dd-mm' as key and value as result.