On Jul 1, 2014, at 1:33 PM, Nabayan Aich wrote: > last night I have install nodejs and mongo db in Ubuntu VM. It was working > fine but when i trying little more coding this morning, I m not able to run. > In fact i totally forgot where to start! > > Question: > 1. how shall i proceed to start coding for 2, 3, 4 project? do i need to > install nodejs for every project after I fire up my machine every time?
You only need the one copy of the nodejs and mongodb software, regardless of how many different node scripts or mongo databases you want to create. To create a new node project, you would typically create a new directory named after your project, and in that directory, run the command "npm init", which will interactively walk you through setting up some initial aspects of your package.json file. Later, you can edit the package.json file in your editor as needed. Create new js files in your editor as needed to implement your code. Use "npm install ... --save" to install dependencies that you use and to record them in the package.json as well. Assuming you've set up the package.json file to do this, you would then run your code by running "npm start". -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/D8BC58B8-5A8D-47FA-BA2D-B64691E55264%40ryandesign.com. For more options, visit https://groups.google.com/d/optout.
