Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brsoff/hubbub
https://github.com/brsoff/hubbub
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/brsoff/hubbub
- Owner: brsoff
- Created: 2014-02-25T22:55:47.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-03-16T19:41:56.000Z (over 10 years ago)
- Last Synced: 2024-08-01T12:35:25.212Z (3 months ago)
- Language: JavaScript
- Homepage: http://the-hubbub.herokuapp.com
- Size: 2.43 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - brsoff/hubbub - (others)
README
#Hubbub
Hubbub is a social media app that allows user to post their recommendations for their favorite restaurants, bars, food, articles, etc. Users can follow others, watchlist their favorite items, and find cool stuff!
![](./doc/screenshots/Hubbub.png)
##Technologies Used
- Rails 4
- Font-Awesome
- Bootstrap
- CarrierWave
- Fog
- Backbone.js
- Underscore.js
- jQuery
- jQuery UI
- Devise##Code Snippets
This is the Backbone code used to make posts draggable into the user's watchlist.```
if (this.model.attributes.user_id != Hubbub.currentuser.attributes.user_id) {this.$el.attr("draggable", "true")
this.$el.draggable({
cursor: "pointer",
stack: "trash",
helper: "clone",
container: "document",
appendTo: 'body',
revert: 'invalid',
opacity: .7
});
$("#add_watchlist").droppable({
accept: ".eachpost",
hoverClass: "add_watchlist-hover",
drop: function (event, ui) {
self.doStopStuff(event, ui)
console.log("stuff")
}
});}
},
doStopStuff: function (e, draggable) {
e.preventDefault();
var object = draggable.draggable.data();console.log("stuff happened")
var new_watchlist = new Watchlist(object);
var params = { post_id: object.attributes.id }
// draggable.draggable.fadeOut(300);
$.ajax({
url: "/watchlists",
data: params,
method: "post",
dataType: "json",
success: function (data) {
console.log(data)
Hubbub.currentuserwatchlists.fetch({
success: function () {
$('#posts').empty().html(Hubbub.currentuserpostsView.render().el);
Hubbub.currentuserpostsView.delegateEvents();
}
});}
})},
```##URL
http://the-hubbub.herokuapp.com
##Contact
For any additional information or suggestions, please contact any one of the below contributors:
Eric Streske - [email protected]
Brendan Soffientini - [email protected]
Matthew Plummer - [email protected]