Initial commit. Modified the Meteor todos app to create the Petit Teton data tracking app. Has working data for sales. Requires a Mongo database.
This commit is contained in:
19
README IMPORT.md
Normal file
19
README IMPORT.md
Normal file
@@ -0,0 +1,19 @@
|
||||
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.
|
||||
Reference in New Issue
Block a user