I am completely a beginner in node.js and have no idea about its architecture.
I was just going through a tutorial where I have create a sample test node.js file (myapp.js) on my Godaddy server which listens to port 3000.
I have already installed nodejs on the server but not able to test it. I have tried by entering the but that does not work. Can anyone please guide me.
mywebsite.com:3000
Related
I will be straight to the point, I have 0 understanding of nodeJS.
I built an application in codeigniter, and I then purchased a codeigniter chat script. The chat script works, however it uses nodeJS and sockets to get real time updates.
I enabled Node in easy apache 4, but have no clue what to do next. It says i need to run node server.js
so i typed that in SSH but it says command not found.
I really don't understand anything! Any help is appreciated
I am fairly new to NodeJS, here is the problem statement:
I have a small app (let's consider default app) of ReactJS. I installed NodeJs on my Ubuntu Server. Now when I hit mydomain.com in a browser I want my ReactJS app to show there. I know I need to do some configuration but somehow not able to find what's the right way of doing it. I have nothing installed on my Ubuntu server except NodeJS and npm.
Any suggestion will help me.
Thanks
For pure Node.js solution, tou can use static files (HTML/JS/CSS) HTTP server like following
https://github.com/cloudhead/node-static
https://github.com/indexzero/http-server
I've used http-server which is super simple and can be installed as a CLI tool as well
Hi everyone i am having a problem hosting the website made in laravel(php) and chat system in NodeJs. I have done this using wamp server and running node server in my local pc computer. Now i am trying to put those in online, i uploaded in public_html/www folder, the laravel part worked but the chat built in nodejs showing js error saying websocket.
I have no idea how to make it run online. can you give me some clue how to solve this.
Today I discovered Sails and have been watching a few tutorials. One thing I can't seem to work and find out is how to deploy it to a standard web server, like for example via an FTP client. I've seen the tutorial on how to deploy it to a Heroku account, but this isn't really what I'm after, as we already rent a Windows 2012 server.
I've got a feeling I'm completely missing something here, so can someone please help me out :)
Many thanks
You can transfer all files via FTP to your Webserver (include all node-modules).
But you have to make sure NodeJS is installed on your server. Than login into your Server (e.g. via SSH) and start your Sails-App (node app.js)
I am currently running a website written with Flask on a LAMP server. I used mod_wsgi to connect the Flask app with Apache, and all is running well. However, I recently discovered websockets and would like to use them in my website. There is a Flask extension for websockets, but I was told Apache does not support websockets and that I could not use it.
I was introduced to Socket.IO running on nodejs at school, and I would like to try it out for my website (rewrite my website using nodejs). My question is how do I run the nodejs app from my local server as I did with my Flask app? I have searched Google, and people are recommending using Apache or Nginx, but will they support websockets? Thank you.
By launching your nodeJS server... Take a look at : A simple TCP based chat server written in node.js
(I'm not the author and I don't know him)
Then just: node myFile.js