# README
Golang-Curmin
This repository contains the necessary codes & info about REST API which is used to backend services for a minimal currecy application in Golang. It has some basic CRUD operations on user system. Using Postgres
About the project
The functions of this service are as follows;
- List Latest Currency Data
- API should be able to list latest currency data by base. (Target optional)
- List Currency Names
- API can list currency names and codes
- List Currency by time
- API can list users by time range
- Insert Currency Names
- API can insert currency names and codes
- Insert Currency Data
- API can insert only targeted data in request paylaod
- Insert to All Currency Data
- API can insert all data in request paylaod
Prerequisites and Installation
-
Docker:
You can install Docker Desktop by following the instructions on the Docker Desktop website.
If you are using MacOS, you can install Docker by following commands:
brew install docker
docker run hello-world
-
PostgreSQL:
Plese refer here for the initialization scripts.
-
Go:
If you haven't done already, You need to install Go by following the instructions on the Go website.
-
Project:
You have to clone the project from the Github repository and run the below script to build the project
https://github.com/denizedizcan/Golang-Curmin.git
-
Run the Project:
You can run the project directly by running the below script from the same directory as the project:
cd /Golang-Curmin/cmd
go run main.go