mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 12:49:43 +02:00
28 lines
788 B
JavaScript
28 lines
788 B
JavaScript
/**
|
|
* Seed Function
|
|
* (sails.config.bootstrap)
|
|
*
|
|
* A function that runs just before your Sails app gets lifted.
|
|
* > Need more flexibility? You can also create a hook.
|
|
*
|
|
* For more information on seeding your app with fake data, check out:
|
|
* https://sailsjs.com/config/bootstrap
|
|
*/
|
|
|
|
module.exports.bootstrap = async () => {
|
|
// By convention, this is a good place to set up fake data during development.
|
|
//
|
|
// For example:
|
|
// ```
|
|
// // Set up fake development data (or if we already have some, avast)
|
|
// if (await User.count() > 0) {
|
|
// return;
|
|
// }
|
|
//
|
|
// await User.createEach([
|
|
// { emailAddress: 'ry@example.com', fullName: 'Ryan Dahl', },
|
|
// { emailAddress: 'rachael@example.com', fullName: 'Rachael Shaw', },
|
|
// // etc.
|
|
// ]);
|
|
// ```
|
|
};
|