A bookmark-sharing and discussion site for music and music-related links. Organized into a series of tags, the links on choonga.ng are specifically geared towards actual pieces of music for listening. A small confession is appropriate here...I created this app as yet another experiment with Ember.js and Foundation, but it was designed to fill a void I actually had amongst my friends, that all of the music we send to each other is done in a relatively private manner, and it's somewhat cumbersome to share music between multiple people at once. Furthermore, it would be interesting to see the volume of people who are transferring tracks at any given moment. Thus, Choongang.
If you're reading this, you probably have some interest in the code, or you wish to submit some kind of issue. Check out the "Issues" link on the right if you wish to submit a bug report. Otherwise, read on!
The app was designed from the ground up to be API-centric. The frontend
of http://choonga.ng is an Ember.js app that speaks JSON to our
internal API. Anything that can be done on the site (except user
management and registration) can also be done within the API.
The API is free to use, as long as you provide your user's
authentication token in each request. The API token can be viewed
on the user edit page, and you can generate documentation by typing
- Links are simply URLs with titles, posted by users. They are automatically previewable with a number of pre-defined "engines". For sites like Soundcloud, Spotify and Youtube, to name a few, the links will open in a preview pane for instant listening capability.
- Comments can be posted to links by other users, and use Markdown as a basic formatting language.
- Tags categorize the links into various genres for easy browsing and subscribing.
- Services are not configurable, they are automatically discovered based on the URL of the Link. They are attached to links and responsible for providing the preview engines that allow for viewability directly on the site.
- Finally, Users are simple authentication models that allow the users of the site to be identified with the application. Users can comment on, vote on and post links.
We expose these objects through our various HTTP APIs. All API calls must include an authentication token passed along with each request.
- The Links API is responsible for retrieving links from the database as well as posting new ones.
- The Comments API allows for posting small comments to existing Links.
- The Tags Read-Only API presents more information about each tag on the site.
This is assuming you know what goes into installing a Rails app..
Download gem dependencies:
$ bundle install
Set up the database and add content from YAML configs:
$ rake db content
Generate a new secret token to authorize requests (you should probably save this somewhere outside of a Git repo):
$ export RAILS_SECRET=`rake secret`
You can now run the following to start the server:
$ foreman start
All contributions are welcome, provided they include tests and are submitted in the form of a Git or GitHub pull request. This project is open source and governed by the terms of the license below:
The MIT License (MIT) Copyright (c) 2013 Tom Scott Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.