605 B
605 B
To import data, place the data in the /private folder, then write a script in the /server folder (javascript).
The script file should define Meteor methods:
Meteor.methods({
"importSomethingOfMine": function() {
//Your script here.
}
});
Then run meteor.
Then at the terminal (in your WebStorm UI, or at a command line (at the project root path), run meteor shell to open a server side shell.
Once in the shell, you can write javascript code that will be executed.
Type Meteor.call('importSomethingOfMine') and hit the enter key and it will execute the method you defined earlier.