http://mherman.org/presentations/microservice-ping-pong
Check out the blog post.
-
Fork/Clone this repo
-
Download Docker (if necessary)
-
Make sure you are using a Docker version >= 17:
$ docker -v Docker version 17.09.0-ce, build afdb6d4
-
Set the environment variables:
$ export REACT_APP_BASE_URL=http://DOCKER_MACHINE_IP
-
Build and tag the
node-base
image:$ docker build -t node-base ./services/node
-
Fire up the containers
$ docker-compose up -d --build
-
Lint and test:
$ docker-compose run node-john gulp lint $ docker-compose run node-john npm test