Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 898 Bytes

File metadata and controls

47 lines (28 loc) · 898 Bytes

swagger-seneca-sample

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!

Setup

Install the dependencies:

npm install

Running with forever

Install forever:

sudo npm install forever -g

Start the processes.

forever start forever/config.json

Running manually

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/.