Run Node.js on localhost.

131 views
Skip to first unread message

faszzte...@gmail.com

unread,
Nov 17, 2018, 3:16:20 AM11/17/18
to nodejs
Hi guys, have a good day for everyone.

FYI, I'm new to Node.js and still learning about it. I have a system running on Node.js and I am the person who needs to manage on the backend. But, if I make any changes, I need to run it on an active server.

What I want to know is, how to run Node.js on localhost? If I can run in localhost, I will be able to make any changes without hesitation about the error code.

Mikkel Wilson

unread,
Nov 18, 2018, 12:33:12 AM11/18/18
to nodejs
Does this node application need other resources (redis, database, etc) to function? If not, you should be able to run it on your localhost exactly the same as you would on the server.

If you're building a server in node and seeking a local development environment, I highly recommend you read into nodemon.

Best,
Mikkel

sai krishna

unread,
Nov 19, 2018, 1:41:05 PM11/19/18
to nod...@googlegroups.com
Use nodemon for auto save the change you did 

npm install -g nodemon

--
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 nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/91091951-940b-4f9d-a5e5-73cc61979912%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

faszzte...@gmail.com

unread,
Nov 28, 2018, 12:07:08 AM11/28/18
to nodejs
Yes it does need database. I managed to run the localhost http-server  but I haven't link it to mongo compass yet, somehow html does not rendered. It only shows the list of directories.

kai zhu

unread,
Nov 28, 2018, 1:44:13 AM11/28/18
to nod...@googlegroups.com
i've always wished sqlite3 could be included as nodejs builtin, so that nodejs is self-sufficient (like python) for writing quick-and-dirty, embeddable web-servers with zero-dependencies.  makes deployment much simpler without complications from npm.

-kai



--
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 nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages