mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
Initial commit
This commit is contained in:
commit
36fe34e8e1
583 changed files with 91539 additions and 0 deletions
28
server/config/bootstrap.js
vendored
Normal file
28
server/config/bootstrap.js
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* 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 function() {
|
||||
// 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.
|
||||
// ]);
|
||||
// ```
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue