> Conrad Pankoff bills himself as a "Professional Cyber Bully"
I sure HOPE so! Otherwise, wth are we paying him for?? --Josh On Wed, Apr 9, 2014 at 12:39 AM, Martín Ciparelli <[email protected]> wrote: > Sorry Frank if I did sound a little bit mean, it wasn't my intention. I just > assumed that you don't know the language because you posted one line of code > that makes use of two Javascript variables and an error that tells you there > is one of them that is not defined and as a result your subject was: > "mongodb is so confusing!". > As you may know from others already: > - your variable user is not defined > - mongo is running fine > - mongo has nothing to do with a Javascript variable being undefined > - you can check out in github some libraries for using mongodb from node > that will help you get along with it > - my virginity is a private variable > > On Apr 8, 2014 9:10 PM, "Frank Z" <[email protected]> wrote: >> >> I installed mongodb through my unbuntu terminal after installing node.js. >> >> When I run sudo service mongodb start >> >> I get back "start: Job is already running: mongodb" from the terminal >> >> So my assumption is that everything is running properly here... >> >> I'm trying to make this todo list from an example in my book, using >> express.js. I used the package.json file to install the depenencies: >> >> { >> "name": "application-name", >> "version": "0.0.1", >> "private": true, >> "scripts": { >> "start": "node app.js" >> }, >> "dependencies": { >> "express": "3.5.1", >> "jade": "*", >> "mongoose":"3.8.4" >> } >> } >> >> Then I run npm install in my terminal... >> >> Everything is correct in my app.js file, all the variables declared >> properly with mongoose and everything... >> >> I run node app.js and get back: >> >> /home/frankz/Desktop/nodesandbox/connect_to_mongo/app.js:40 >> app.get('/users', user.list); >> ^ >> ReferenceError: user is not defined >> at Object.<anonymous> >> (/home/frankz/Desktop/nodesandbox/connect_to_mongo/app.js:40:19) >> at Module._compile (module.js:456:26) >> at Object.Module._extensions..js (module.js:474:10) >> at Module.load (module.js:356:32) >> at Function.Module._load (module.js:312:12) >> at Function.Module.runMain (module.js:497:10) >> at startup (node.js:119:16) >> at node.js:902:3 >> >> So what's going on here? >> >> -- >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "nodejs" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
