In the above example I typed "console.log('Hello World')" into the shell and hit enter. This will open an interactive shell (REPL: read-eval-print-loop) where you can execute raw JavaScript code. You can use the node command in two different ways. Once installed you'll have access to a new command called "node". If you're using Windows or Mac, installers are available on the download page. Node.js is just another way to execute code on your computer. If you want it to be a HTTP server, you have to write an HTTP server (with the help of its built-in libraries). There is no config file where you point it to you HTML files. The description on definitely doesn't help.Īn important thing to realize is that Node is not a webserver. What is Node.js?Ī lot of the confusion for newcomers to Node is misunderstanding exactly what it is. I see comments every once and awhile that sound something like, "I've downloaded Node, now what?" This tutorial answers that question and explains how to get started from the very beginning. There's no shortage of Node.js tutorials out there, but most of them cover specific use cases or topics that only apply when you've already got Node up and running. Curvature allows you to take advantage of rapid deployments, easy scaling, and real-time analytics in the environment of your choosing, on-premises, in the cloud, or a hybrid of the two. Modulus is the first company in the industry to offer a dedicated enterprise solution called Curvature. Prior to Modulus, Brandon worked in the chemical detection and telecommunications industries. Brandon organizes the Indianapolis Node.js meetup and enjoys speaking at conferences about Node's horizontal scalability. Brandon is the CTO of Modulus, a Node.js application hosting platform. This is a republished blog post by Brandon Cannaday. You should check it out after you have read through this one. Update: We have published an article on the most important Node.js Security Tips.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |