Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.
/ countries Public archive
forked from lsmoura/countries

a simple country list microservice

License

Notifications You must be signed in to change notification settings

Sampratii/countries

 
 

Repository files navigation

Countries

A very simple micro-service for supplying country information

Running

It's very simple to build and run using docker

  • Building

This is optional, as you can use the currently published docker version

docker build -t lsmoura/countries .
  • Running
docker run --rm -d -p 3000:3000 lsmoura/countries

After issuing the command above, you can start making queries

Using

Just do HTTP calls to the microservice. There is no database nor authentication needed. Everything needed is loaded into memory when the container is started.

  • Retrieve every country

curl http://localhost:3000/

  • Retrieve a single country by "alpha2"

curl http://localhost:3000/ca

  • Retrieve a single country by "alpha3"

curl http://localhost:3000/usa

  • Retrieve a single country by "numeric code"

curl http://localhost:3000/76

Author

About

a simple country list microservice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.0%
  • Dockerfile 6.0%