John, I do not know if it's needed, necessary or most efficient for my own project. Basically I'm writing ( in my spare time ) a client side alarm / mp3 player app that gets served music files through Node.js to the client.
This includes but is not limited to a playlist or listing of music available on the server. Methods to play, randomize, loop through, or otherwise order music. A clock feature with an alarm clock, that has the ability to set an alarm by a set amount of time, or set a specific time to go off. And whatever else I can dream up. For me right now on this project it seems that socket.io makes the most sense. I can iterate through a directory, and feed the client a list of files, semi dynamically provide links, and tags to the client. Then the client can provide additional grunt work by getting file stats through using the html5 audio tag( using javascript ). This keeps me from having to install additional libs / tools like ffmpeg on the server side while keeping things as simple( and clear ) as possible. I am also reading up on Mosquitto / MQTT for this( less so for this but a consideration ), and other purposes. Anyway, my only real goal is to learn. Learning about new technology( to me ) and using it is part of that. On Fri, Jul 4, 2014 at 6:41 PM, John Syn <[email protected]> wrote: > > From: William Hermans <[email protected]> > Reply-To: "[email protected]" <[email protected]> > Date: Friday, July 4, 2014 at 9:11 AM > To: "[email protected]" <[email protected]> > Subject: Re: [beagleboard] Re: Having trouble with basic node.js server > > Great! > > Yesterday I mentioned MEAN, but that really isnt possible on the BBB yet. > I did some research, and apparently MongoDB still doesnt work well on ARM. > It's been a year since i last checked . . . Their excuse is that memory > mapped "documents" wont work well on embedded devices, which is of course a > load of bull. Matter of fact it makes more sense on an embedded device than > anything else. > > Use Redis nosql database which is lightning fast and scales really well. > > Regards, > John > > > > The good news is that Angularjs Express, and socket.io will all work fine > to achieve the same goal. > > > On Fri, Jul 4, 2014 at 6:49 AM, Gary White <[email protected]> wrote: > >> Thanks William! >> >> I loaded express and was able to get the basic web server working. Much >> simpler code as well. >> >> Regards, >> Gary >> >> var express = require('express'); >> var app = express(); >> >> app.get('/', function(req, res){ >> res.send('Hello World'); >> }); >> >> app.get('/socket.html', function(req, res){ >> res.sendfile('/var/lib/cloud9/socket.html'); >> }); >> >> >> var server = app.listen(8000, function() { >> console.log('Listening on port %d', server.address().port); >> }); >> >> -- >> 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. > > -- > 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.
