webpro / dyson

Node server for dynamic, fake JSON.
837 stars 61 forks source link

Dummy image service is not registered automatically #79

Closed dz902 closed 7 years ago

dz902 commented 7 years ago

In the README it says a dummy image service will be registered, but it was not. After installing dyson-image, it was still not registered, and I could not find how to register this service.

Please advise. Thanks!

webpro commented 7 years ago

Please refer to https://github.com/webpro/dyson/blob/master/dummy/get/image.js for an example.

webpro commented 7 years ago

See https://github.com/webpro/dyson-image for more details.

webpro commented 7 years ago

You can also install https://github.com/webpro/dyson-generators to do this:

var g = require('dyson-generators');
module.exports = {
  path: '/foo',
  template: {
    img: g.image.base64({width:200, height: 200});
  }
};

And then there's https://github.com/webpro/dyson-demo.

dz902 commented 7 years ago

Thanks, just found out the first link.