Here's a simple tutorial, not of express, but it will get you started & you could adapt express in there pretty easily.
http://isolasoftware.it/2012/04/23/beaglebone-and-websockets-a-full-example-that-turn-onoff-a-led/ On Sunday, January 25, 2015 at 7:10:31 AM UTC-6, Günter Pütz wrote: > > Many thanks for your help, William! > > The link about express you posted is a good start. I have also found out > what I was looking for regarding the setup. At this point thanks to Robert > as well. > > Best regards, > Günter > > Am Sonntag, 25. Januar 2015 03:05:20 UTC+1 schrieb William Hermans: >> >> I think it is important to understand that Nodejs is javascript *not* >> java. They are not interchangeable . . . So then if you would like to know >> how to write a web server using Nodejs, it really depends on what >> "libraries" you plan on using. Express, is possibly the most well known / >> used. >> >> http://code.tutsplus.com/tutorials/introduction-to-express--net-33367 >> would be one such tutorial. >> >> On Sat, Jan 24, 2015 at 11:29 AM, Günter Pütz <[email protected]> >> wrote: >> >>> Thank you Robert! >>> >>> I tried the ports and found out what you wrote. >>> >>> Regards, >>> Günter >>> >>> Am Samstag, 24. Januar 2015 19:14:45 UTC+1 schrieb RobertCNelson: >>> >>>> On Sat, Jan 24, 2015 at 12:13 PM, Günter Pütz <[email protected]> >>>> wrote: >>>> > Thank you William, >>>> > >>>> > but I knew that. My question was how to setup a webserver with >>>> node.js on >>>> > the bone. I found out now that the preinstalled webpage runs on the >>>> apache >>>> > server. Perhaps you have some suggestions how to make a node.js >>>> server >>>> > (written with express library) autostarting. >>>> >>>> The default webserver on port 80 is node.js... >>>> >>>> cloud9 which also runs off node.js is on port 3000 >>>> >>>> apache is running on port 8080.. >>>> >>>> Regards, >>>> >>>> -- >>>> Robert Nelson >>>> http://www.rcn-ee.com/ >>>> >>> -- >>> For more options, visit http://beagleboard.org/discuss >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "BeagleBoard" 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/d/optout. >>> >> >> -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" 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/d/optout.
