Open smartmouse opened 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) { /*
app
app.models.YourModelName
app.datasources.YourDataSource
cb
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) { /*
app
object provides access to a variety of LoopBack resources such asapp.models.YourModelName
) or data sources (e.g.app.datasources.YourDataSource
). Seecb
to an async function yourself };