Skip to content

PetoriousBIG/my-go-app

Repository files navigation

my-go-app

To build: docker build -t go-multi-stage --build-arg port=<container-port> .

To run: docker run -p <host-port>:<container-port> go-multi-stage

The API utilizes the following endpoint: /At-A-Glance/{id:[A-Z]{3}} where id is any of the Alpha-3 codes in the csv file.

Testing the API endpoint: curl localhost:<host-port>/At-A-Glance/COL | jq

Should return the following JSON:

{
  "country": "COL",
  "country_name": "Colombia",
  "country_id": 170,
  "average_latitude": 4,
  "average_longitude": -72
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published