strongloop-archive / strong-gateway

DEPRECATED | Our new gateway product is available at https://github.com/strongloop/microgateway.
Other
112 stars 46 forks source link

Tutorial : create server/boot/sample-app #47

Open smartmouse opened 8 years ago

smartmouse commented 8 years ago

https://github.com/strongloop/strong-gateway-demo/tree/master/notes-app-plain step 3, create a boot script to add sample data. slc loopback: boot-script sample-data

A sample-data.js is created with draft template as follows:

But doc ask us to follow link to create https://github.com/strongloop/strong-gateway-demo/blob/master/notes-app-plain/resource-server/server/boot/sample-data.js#L2-L16

This is the draft:

What is the purpose of asking people to remove the line? Is it deliberate? Just waste of effort to need to remove things.

We should either create the expected sample or leave a blank function body.

module.exports = function(app, cb) { /*