SongBuzz icon indicating copy to clipboard operation
SongBuzz copied to clipboard

Setup server-side support.

Open MeoMix opened this issue 13 years ago • 11 comments

MeoMix avatar Jul 12 '12 00:07 MeoMix

What do you mean by that, exactly?

hfern avatar Jul 22 '12 11:07 hfern

Hi,

Sorry. I was leaving these comments just for my own personal record-keeping as I thought people weren't going to actually read them!

SongBuzz is currently just a client-side application. This introduces a few limitations. One key feature that I think all users will want is the ability to share their collection of music with another person. There isn't a good way to do this without having access to a server, though.

What I propose in the future is:

  • Set up AWS: http://aws.amazon.com/
  • Allow SongBuzz to communicate with the distributed servers.

While the feature isn't specific to this open issue -- having the servers will allow for a user to click a button, submit their playlist to the server, and receive a short-code URL "e.g. SongBuzz/#999121" which, when pasted into SongBuzz, will go back out to the server and retrieve that music collection.

In addition, I would like to be able to keep 'trending' information. If 1000 users submit playlists - I would like to be able to take metrics on this data and pre-populate SongBuzz with 'Buzzworthy Playlists.' These playlists would be dynamic, fed with information from the server, and reflect what songs the SongBuzz userbase listens to the most.

MeoMix avatar Jul 22 '12 16:07 MeoMix

Hey dude, today I started working a lil bit on the server side app. I have it on a diferent repo, dunno if you wanna merge everything in just one or keep them separated. Its working pretty good the only thing that is missing is the oauth authentication which I might do it tomorrow prolly. And I also tried to deploy it to heroku and its "working", but there's something going on with routing I think, 'cose its throwing timeouts and im not seeing anything weird on the heroku console. Im gonna keep working on that now and see if i can get it to work, lol.

Anyways here's the repo: https://github.com/sabarasaba/SongBuzz-Server And here's the deployed app: http://songbuzz.herokuapp.com/

sabarasaba avatar Jul 27 '12 23:07 sabarasaba

:D Word word! I'm just about off of work and on my weekend. Very excited to take a look at all of this over the weekend :)

MeoMix avatar Jul 27 '12 23:07 MeoMix

AIght, I finally got the API to work on heroku. There was a stupid problem with the mongodb connection string, but I finally got it to work YAAAAY. And I also wrote a couple of javascript methods to consume the api: https://github.com/sabarasaba/SongBuzz-Server/blob/master/views/api.ejs

sabarasaba avatar Jul 28 '12 18:07 sabarasaba

Awesomeeee! I set up nodejs, mongodb and the rest of the dependencies on my pc. So, I have the server running here too, but the Heroku bit is so cool!

I tested to see if I could pull data in from Heroku to SongBuzz and I can! :) Going to play with it more tonight - can I merge this code into this project?

MeoMix avatar Jul 29 '12 23:07 MeoMix

sweet ! yeah of course you can, and if you want you could also add me as a collaborator of the project, I think that'll be easier for both of us to mantain the project. On the other hand, today I've been working on the oauth authentication for the API, im gonna keep working on that tomorrow and I'll push it once its ready !

sabarasaba avatar Jul 30 '12 00:07 sabarasaba

Hey! I just added a new function to the API that allows you to return the top 10 songs of an artist (I get them from the lastfm charts using the lastfm api) with their youtube id, rating and player link. That way we can allow the user to create a playlist with the "best" songs of an artist. For example if you want the top10 songs of bob dylan: http://songbuzz.herokuapp.com/api/playlists/getTopSongs/bob%20dylan

sabarasaba avatar Jul 31 '12 19:07 sabarasaba

This is SO, SO sick!! Think of the possibilities!! This is a ton of very powerful information.

I did some work on SongBuzz last night. I am very keen to incorporate the server-side portion, but am also trying to not get too ahead of myself. I've still got some 'to-dos' for core functionality (player won't play certain songs and need to handle this better).

You've been marked as a contributor. I haven't merged the server GitHub over yet, but I'll try and get around to it. :) Thanks again man!

MeoMix avatar Jul 31 '12 19:07 MeoMix

Awesome, im glad you liked it!

If you want I can merge the projects in this repo, but im not sure about the project structure. Maybe something like:

  • SongBuzz Client
  • SongBuzz Server
  • readme.md

And who knows, maybe later we could wirte a pokki reusing the code of the chrome extension !

sabarasaba avatar Jul 31 '12 20:07 sabarasaba

Hey man,

Sorry, I've been super busy lately. I had a business trip to the United Kingdom for a couple of weeks and after that I was experiencing some health related medical issues :( But, I am still very interested in all of your work and I have not forgotten about it! We should sit down and talk soon about how to integrate our work. Let me know! :)

The front of my to-do list is:

-- Work on algorithm for smart picking of songs when content restrictions don't allow for song to play -- Allow for sharing songs between PCs (this will require server implemented)

So I'd definitely think it's about time to start bringing it in! :)

MeoMix avatar Sep 06 '12 21:09 MeoMix