Giter Site home page Giter Site logo

gdshowsdb's Introduction

https://github.com/jefmsmit/gdshowsdb/actions?query=workflow%3ACI

Gdshowsdb

All Grateful Dead show information in a relational database.

Hoping to make this freely available database the cannonical resource for all Grateful Dead concert information.

Additionally, This Gem can be used as an API to the data.

Using with Ruby

require 'gdshowsdb'

Gdshowsdb.init()
Gdshowsdb.load()

jack_straw_shows = SongRef.find_by_name('Jack Straw').shows

jack_straw_shows.each do |show|
	puts show.title
end

Using with Rails

Add this to your Gemfile

gem 'gdshowsdb'

Generate the database migrations

rails generate gdshowsdatabase

Understanding the Model

The SongRef class represents the reference data about a song. For example there is only one SongRef instance (or database row if you prefer) for "Wharf Rat". This allows us to normalize song names so its always "Goin' Down The Road Feeling Bad" and not sometimes "GDTRFB". A SongRef knows the Shows where it was performed.

The Show class is for reprsenting all the particulars about a performance. City, State, Venue, etc.

The ShowSet class is for representing a segment of a show. That way we can know what was played in the first set version the second versus the encore. I did not call it Set in order to avoid confusing with the Ruby class of the same name.

The Song class is for representing the occurence of a SongRef. Songs know which set the occurence of a SongRef happened in, its position in the ShowSet as well as wether it was segued out of.

The SongOccurence class is named association (think join table in sql) that allows a Show to know which SongRefs were performed without having to traverse throug the ShowSets. I'm not convinced of this classes value and might remove it.

gdshowsdb's People

Contributors

dependabot[bot] avatar jacobcharleskillian avatar jefmsmit avatar leoskadden avatar neilmpatterson avatar waffle-iron avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.