I am thinking of a way to allow users to upload files containing app-data, which would be parsed on the server and subsequently loaded into the database with a method call. A side-effect of this approach would be that it should be possible to do the same on the server, but from the command line. However I am unsure as how to call a method from the command line…
example method:
Meteor.methods({
'load.file': function(filename){
//load the file, validate content, insert into database
}
})
If I would be able to call this method from the command line this would allow me to insert data with a simple command-line call, or allow users to upload their own data.
Any help would be greatly appreciated!