nodejs newbee needs help on writing a websevice accessing a server via tcp

67 views
Skip to first unread message

Dieter Stubler

unread,
Feb 4, 2016, 10:38:32 PM2/4/16
to nodejs
Hi,

Currently we have an old style web frontend to our schedulix Open Source Enterprise Scheduling System.

I'm thinking about to use nodejs as backend for our redesigned SPA GUI.

What i need is a webservice which will run on nodejs serving as a command executor of schedulix statements on our server backend.
The webservice should get statement, hostname and port of our backend as well as username and password.
to connect to the scheduling server via tcp to execute the command retrieve the rsesults and give it back to the SPA.

The question is not how to do socket io and json etc.

I just need a starting point or a hint to a resource example or sometjing else showing me how to implement a webservice in general.

Sorry if the question is quite silly but googling didn't helped me out so far.

Regards
Dieter

Alain Mouette

unread,
Feb 5, 2016, 6:12:13 PM2/5/16
to nod...@googlegroups.com

IMHO it should be much easier if you make one more backend in something like Node.js as a gateway, this new backend will serve your SPA and talk to your old style backend

Just my 2c

-----
Alain Mouette

--
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/9c20f2df-1c17-49f3-b0e2-13a4e80a4f8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Saheed Adepoju

unread,
Feb 11, 2016, 1:15:42 PM2/11/16
to nodejs
Hiya,
I started out NodeJS just over Thanksgiving last year and it was pretty straight forward. I started out here: https://nodejs.org/en/
Also in order to accelerate development, there may be existing SDks to help with what you are looking for.
To write a simple server(either HTTP or websocket), check out Socket.IO(it has both a client end and a server end).
Check out also https://www.npmjs.com/ to search for a wide variety of existing packages. Hope this helps.

Saheed.

Goga Moga

unread,
Feb 11, 2016, 1:15:55 PM2/11/16
to nodejs
Do not implement any TCP transport. Use http and nginx as reverse proxy in front of the node as a load balancer. Dont invent the wheel in other words.
Reply all
Reply to author
Forward
0 new messages