Skip to content

agadilkhan/currency-rate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currency-Rate

Service for getting the currency rate


Built With

  • Golang
  • Gin
  • PostgreSQL

Getting Started

Installation

  1. Clone the repository
git clone https://github.com/agadilkhan/currency-rate.git
  1. Install dependencies
go mod tidy
  1. Create config.yaml file in config folder, copy config.yaml.example and fill missing values

Migrate

To create the currency table

migrate -path migrations/ -database "postgresql://username:password@localhost:5432/database_name?sslmode=disable" -verbose up

Launch

go run cmd/main.go

Endpoints

  • http://localhost:8080/api/currency - list of all currencies
  • http://localhost:8080/api/currency/:code - get currency by code
  • http://localhost:8080/api/currency/force-update - force update

Contact

Alfarabi Agadilkhan (aagadilkhan@gmail.com)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages