External API integration is inevitable in a modern web app. A stub server facilitates effective testing of this integration. It stub should be easy to create and maintain.
Postman is a tool that helps to efficiently test web APIs. Your Postman collection becomes a semi-formal specification of that API's behaviour.
Stubman uses this collection to generate a stub server; reflecting the specified behaviour. This removes the need to maintain a separate stub server implementation.
The only supported functionality is binding the path to either PUT/GET/DELETE/POST method, returning 200 and echoing back the first saved response. More to follow.
Install the module with:
$ npm install stubman
Run Stubman with a collection. The `-c` flag allows you to specify a collection file on your file-system.
$ stubman -c mycollection.json