Search code examples
meteornitrousio

Meteor on a Nitrous box: how to add a test record in the MongoDB database?


So, I have started to test Meteor on a Nitrous.io box in the cloud. I used to enter a test record by typing it directly into the Chrome browser console, like:

Projects.insert({name:'First Project',client:'Project Central',duedate:new Date(),status:'On Hold'});

However, that does not work on Nitrous. So, how do I add a test record in my meteor collection to work on?

Who can help me in the right direction? Much appreciated.


Solution

  • After you run meteor run in a Nitrous.io console,

    open up another console and run meteor mongo.

    Then you can type in a db.Projects.insert(...) or other mongoDB command.