Getting started with Node.js and JavaScript -
Getting started with Node.js and JavaScript -
i started learning programming couple weeks ago (currently working through javascript) , have no coding experience. i’m doing fine far language i’m confused how implement learning. these steps have taken far , confused. can help guide me?
i’m on windows pc downloaded webstorm ide downloaded , installed console2 deed terminal followed instructions here (http://www.jhh.me/blog/2012/12/24/setting-up-http-server-on-windows-with-node-js/) download , install node.js. reads, installed http server , started server, using file path js , html files have created in webstorm opened localhost , see directory of files have created in webstormmy questions are:
is console2 necessary? or covered webstorm? do ever need type in node itself? looks command prompt haven’t been able execute through it if stop server typing ctrl-c in console2 , selecting y terminate batch job, why able still see directory of files when go localhost? aren’t accessing server created here? or misunderstanding use? finally, followed directions on sitepoint, copying language js file in webstorm create server. code executes in webstorm , see “server listening”. however, don’t understand instructions “to start server, type command below…node web_server.js”. type where? in console2? in node? unnecessary since have created , run server in steps above?please forgive basic nature of these questions. have found great teaching sources online, seem conflict or omit steps, tough true beginner.
thank you!
brendan
console2 not necessary, it wrapper shell cmd.exe
i'm guessing you've gone repl function. farther explanation of repl @ wikipedia.
if server has been terminated won't able see new stuff @ http://localhost
, you'll see cached content.
they explaining how run command prompt(cmd.exe
).
javascript node.js
Comments
Post a Comment