I have a web-server with cPanel, but I didn't find the method to make the website properly work. I made an aldomain, updloaded the project, but it doesn't recognise the base css, nodejs server etc... Tha main question is how to run my own server.js file on the server(?!), and how to make it looks like on localhost? Is it possible? If it's not, how can I publish it? I know that I shouldn't send this message here, because it doesn't contain any code, but nobody tells me where can I ask theese kind of questions. Can you tell me this too, please?
Bad news is cPanel doesn't support Node.js. Prof link
Good news is here you can make question without any code.
Related
I am working on a project, where my application need to generate a report. So I searched for the library that generate report for me and I got "JSreport". Then I started to dig that to get dirt with that.
Now, my requirement is that the application which I'm gonna develop has to be stand alone, but as per my understanding with JSreport, it needs a server to generate a report(i.e. my application has to communicate with the server of JSreport to generate the report), but my application has to work offline. So I am worried about it.
Is there a way to make it work offline without any server? If so, please help me to come-out of this. Or please suggest me a good report generating library that will satisfy my requirements.
Note: My application gonna be with nodejs and electronjs, so please suggest the libraries related to those languages.
Thanks in advance!
You can try set up a local JSReport server from you application.
You should be able to communicate with it sending requests to localhost:${port}. It doesn't require to have internet connection.
See https://jsreport.net/on-prem
There is a "template" sort of thing for a shopping like website and I want to make it work on a domain, instead of localhost. The source code is here: https://github.com/jakblak/BestDressed
I already have the domain, and my domain is set up with my VPS so it will run off of that. But again, I would like it to work on the domain instead of localhost. I would also like no port, e.g: localhost:9000
Thanks in advance and sorry if this was a hassle.
Basically you have to install and run this node application on your server and make appropriate configuration changes. After a quick look, it seems you can find them under server/config/environment/.
The exact way depends largely on your specific setup.
I have question about how to set Node.js server application. On my server I have ColdFusion application server. I can test my code through browser url. I would like the same for Node.js. Node is already installed on my server but the only way to run the code is through cmd command window. First question is what I need in order for both to run on the same server? I still need my ColdFusion. Second question is about Nodes.js and can I set up server application with ISS or I need something else? Also do I have to specify what extension on my files will point to ColdFusion and other to Node. For example .cfm extension is for ColdFusion and .js is for the Node. If anyone knows anything about this or where I can find more information please let me know. I never experienced something similar and this is something completely new for me.
I know this is an old post but I figure I'd provide an answer for those souls who are looking around.
If working with Apache 2.4.x.
In a test environment this would not be to much of an issue as Node and Coldfusion operate on different ports.
If your looking to create a production site than I would say that building a virtual host with proxy to the node site and Coldfusion would be another method.
If you are using the Coldfusion connector to Apache and loading node, than still loading the proxy for the node part would be fine, just make sure you are pointing to the correct port for your node.
Things to remember:
You may have to alter internal Firewall rules.
Comment your hosts files so you don't accidentally alter the wrong file.
Both can exist within the same platform.
I am entirely new to backend development so this might be a ridiculously easy and straightforward question, but I'm really not sure. I am trying to learn node.js for backend development, and all of the tutorials I have seen so far show how node can be used to run JavaScript from the terminal and create a server on local host. While this is a neat thing to do, I am stuck there and having difficulty understanding where to put my node.js code on cPanel and how to use it effectively along with the rest of my html/css/js code; all the examples I have seen are very isolated and don't have much interaction with these other files.
Again, I don't have any backend experience, so it would not be very helpful to explain this concept relative to another server-side language like Python, Ruby, or PHP, as I really have no idea where I would put any of the code for any of that stuff either or how it fits into the bigger picture. If the answer could maybe touch on how to integrate Python or PHP as well and general patterns for backend development---the easy stuff everyone assumes but no one explains---it would be much appreciated.
It doesn't matter where you put it. However you probably want to keep it in the folder of the username which is using it. I created a folder called app/ in my users folder and put all my crap in there. Then you simply set it up to listen on a port approved by your host.
You can use a .htaccess file in your public_html folder to redirect to the correct port number.
Your node.js will handle routing. So to go to certain css/html files you will have to set that up in your node.js code.
I've been searching all over the web and have attempted to upload my node.js based server up to a few various web hosters with no result. As far as I know most hosters don't support node.js to begin with, and I have a list of a few that do.
But my primary question is, how do you get your server working on this hoster in the first place? do you just upload it? does it sort of self run once uploaded? do I have to access that hosters cmd in order to get it running?
Sorry for what is probably a very newbish question, which I assume it is as I have yet to find a guide that covers this because it is apparently too basic. They always seem to skip this part:s
You'll just need to upload your files to a web host that supports javascript and offers command line access; for example, check out Amazon's free scalable offering. Once you have the files uploaded, just run them from the command line:
% node node.js