Skip to content

burhanudinyahya/exchangerates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Exchange Rates

This project is a Go-based API server that retrieves and caches exchange rate data and currency lists from external APIs. It is designed to minimize API calls to external services by using an in-memory caching system that refreshes data every hour.

Prerequisite

  • Go version 1.23.3

Steps to Run the Application

  1. Set the APP_ID Environment Variable:

    • On Linux/Mac:

      export APP_ID="your_api_key"
    • On Windows (PowerShell):

      $env:APP_ID="your_api_key"
  2. Run the Application:

    go mod tidy
    go run main.go

The server will now use the APP_ID from the environment variable, making it more secure and configurable.

Test

About

Free Exchange Rates API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages