lsmoura / countries

a simple country list microservice
MIT License
2 stars 15 forks source link
expressjs flowtype javascript microservice node

Countries

A very simple micro-service for supplying country information

Running

It's very simple to build and run using docker

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

docker build -t lsmoura/countries .
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.

curl http://localhost:3000/

curl http://localhost:3000/ca

curl http://localhost:3000/usa

curl http://localhost:3000/76

Author