Node.js Microservices with Seneca and Docker
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
adder-service removed hardcoded ports Jan 28, 2018
greeter-service removed hardcoded ports Jan 28, 2018
server removed hardcoded ports Jan 28, 2018
.gitignore initial commit Jan 18, 2017
README.md Update README.md Feb 11, 2017
docker-compose.yml initial commit Jan 18, 2017

README.md

Node.js Microservices with Seneca and Docker

More detailed explanation can be found in this blog post: http://fullstackdeveloper.info/node-js-microservices-with-seneca-and-docker/

Project structure

Project includes two Seneca services and one Express web server. They are all running inside their own Docker containers. Requests to web server communicates with other two microservices.

To test it

After cloning the project and running Docker Engine, just run the command below:

$ docker-compose up

When containers start to run, you can send requests to web server:

$ curl "http://localhost:3000/?name=Alex&number1=7&number2=8"

Web server will respond with greeting and sum of numbers:

Hello Alex, sum of numbers is 15