Skip to main content
Community Expert
April 24, 2019
Question

Use cases of creating a nodejs server in a panel

  • April 24, 2019
  • 1 reply
  • 499 views

Hi All,

I am not experienced with web development and nodejs so excuse me if this sounds very basic. I looked at the article that mentions that we can create a nodejs server in a panel. I was wondering in what practical use cases would this be helpful. I know and have used node packages in my extensions, what advantages would creating a node server give? Also can a node server app access the native application api's as well as we do using csinterface, i suppose not.

Thanks,

-Manan

This topic has been closed for replies.

1 reply

stevek52428324
Participating Frequently
April 24, 2019

Having a nodejs server in a panel is almost equivalent to having a nodejs server for a website. Think of it as a difference between a website with only HTML, CSS, and JavaScript vs a full stack website. Also, you will be able to use all node packages. However, do note that CSInterface allows you to use these modules without having a server. That article specifically talks about running the server on localhost, so if you are building a panel for yourself or a team, this might be a good approach. However, if you are planning to distribute it to others, the port might get mixed up with other apps depending on the user and panel won't load because of "connection refused" problem. So I wouldn't recommend using the server in that case.