On Jan 9, 2014, at 08:12, JPJen wrote: > I have prepared a stand alone Node.js file (shown below). It works as > expected. When I ran the code, I gave a command in a DOS window - > C:......\folder_name>node file_name.js. While the server was listening, I put > a URL in the browser address bar. After I finished the test, I manually > terminate the Node.js code using CTRL+C. > > Now, I have to do the same thing in a big project/application. And I am lost. > I do not know how it works: > > • To run a big project/application, we simply put a URL in the browser > address bar. We do not give a command in a DOS window, such as node > file_name.js. How do I start the code in a big application?
You can start your node script any way that pleases you. You can do it in the command prompt window like you did, or you can investigate whatever OS-specific services might exist for automatically starting programs at system startup time. I’m not familiar with Windows so I can’t tell you what those options might be on Windows, though I’ve heard the term “service” used before so you might look that up. > • The big project/application runs on the WebLogic server and its port > is 7171. Here in my stand alone Node.js code, I define a server and it > listens on 8080. > > • To run a big project/application, I do not manually terminate a > specific file. How does the Node.js file (the code below) gets terminated in > a big application? You can write a web application of any size with node, big or small. Sounds like you’re trying to integrate a node web app with a web app already written elsewhere using different technology. If so, you’ll have to describe in much more detail how you want the parts written in node to interact with the parts written in WebLogic. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: 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 post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
