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 installInstall forever:
sudo npm install forever -gStart the processes.
forever start forever/config.jsonStart the petstore service in one process:
node services/petstore-service.jsStart the API Facade on a separate process:
node index.jsNavigate to swagger docs http://localhost:8888/docs/.