A sample API facade with Seneca microservices that showcase the Swagger-seneca-router module. Swagger-seneca-router is a Node.js connect/express middleware for routing REST API calls to Seneca micro-services. The idea is that you only have to work at the schema level in Swagger and the business logic level in Seneca. None of that dealing with boiler plate code!
Install the dependencies:
npm install
Install forever:
sudo npm install forever -g
Start the processes.
forever start forever/config.json
Start the petstore service in one process:
node services/petstore-service.js
Start the API Facade on a separate process:
node index.js
Navigate to swagger docs http://localhost:8888/docs/.