Skip to content

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 bo…

License

Notifications You must be signed in to change notification settings

dmccarthy-dev/swagger-seneca-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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 bo…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published