This is the server side for CountrySelect App.
- Docker
- Go1.16
$ make setup
# Check all four containers are up
$ docker ps
# country-web - to get /countries
# country-es01 - to search countries
# country-pgweb - ui to view postgresql
# countrypg - postgres db
Once it's ready, go into es01 bash.
$ docker exec -it country-es01 bash
$ vi config/elasticsearch.yml # or use your preferred editor
-
GET localhost:8080/countries
-
Open "http://localhost:8081/" in browser to view database UI
-
localhost:9200 for Elasticsearch API