Answer the question
In order to leave comments, you need to log in
How to implement node js on a website?
There are many instructions on the Internet on how to install NODE.JS on a computer and run it through the console.
But where can I get the console when working with sites?
How to install node there?
So far, I have only experience using FTP Filezilla and hostinger and 000webservers services. Is it
possible to implement node with their help, or should I use something else?
Answer the question
In order to leave comments, you need to log in
Not for shared hosting. Node.js requires managed hosting (VPS, collocation, dedicated) or specialized node.js hosting (nodejitsu, etc.).
Developing Node.js sites
Normally when you develop a Node.js site you'll need to restart your application each time you make a change. Thankfully our home-grown British JavaScript genius Remy Sharp has solved this problem with nodemon. Nodemon will reload your application each time it changes so you don't need to restart it. If you have used Shotgun for Ruby with Sinatra it is similar to that. To install run
npm install -g nodemon
Then you can start your app with
DEBUG=express_example:* nodemon
Nodemon automatically looks in your project setting to find the appropriate files and setting to start your server. If this does not work try:
DEBUG=express_example nodemon npm start
Using nodemon means you don't have to restart your app each time you make a change. For more infomation on nodemon see the README
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question