You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
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
). See*/
process.nextTick(cb); // Remove if you pass
cb
to an async function yourself};
The text was updated successfully, but these errors were encountered: