Skip to content

A web site for music of a single artist using Rails 3 and jPlayer for HTML5 audio + Flash player fallback

License

Notifications You must be signed in to change notification settings

nileshk/music-site-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Music Site

This is a simple Rails 3 app for a web site for hosting music of a single artist. It uses jPlayer on the front end to provide an HTML5 music player with a Flash fallback, and aims to support all modern browsers including mobile devices. Music files can also be downloaded in either MP3 or OGG formats. Some HTML5 canvas graphics are animated while the music plays.

Configuration

To be able to use this the following files need to be configured:

  • Create a config/database.yml file (you can copy config/database.yml.sample as a starting point)
  • Create a config/initializers/site_config.rb file by copying config/initializers/site_config.rb.example and modifying for your site
  • Create an admin user (using Devise for auth). I do this with the Rails console as [described here][1].
  • Once running, browse to /songs, and add new songs, uploading MP3 and OGG versions of your songs.

[1]: http://stackoverflow.com/questions/2708417/creating-an-admin-user-in-devise-on-rails-beta-3/2752839#2752839)

TODO

  • Handle case when site_config.rb is not configured or some of the variables in it are not configured
  • Easier way to initialize admin user
  • Alternative layout for mobile devices.
  • Test on more browsers
  • More animations!

Web sites using this

This is used by:

About

A web site for music of a single artist using Rails 3 and jPlayer for HTML5 audio + Flash player fallback

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published