Linemanjs using json for api stubbing


So I was wondering if it is possible to have it return data from a json file instead of data specified in the server.js?

Short Answer is yes.

Justin suggested to use this line:

However, lineman/grunt doesn’t exist errors happen, even if you include them in the function params.

This workaround did the trick.

Where your json files are stored here: config/api/ allowing much more freedom to switch in and out data using JSON. Nice.

Sam is a passionate web developer from England. In his spare time he enjoys coding, playing chess, reading and investing.

Leave a Reply

Your email address will not be published. Required fields are marked *