Skip to content

Chinook is a multi-table sample database that represents a digital media store. Feel free to fork and use in your projects.

Notifications You must be signed in to change notification settings

nikita-kazakov/chinook-sample-database

Repository files navigation

Chinook Music Dataset in Ruby on Rails

What is it?

Chinook is an open-source sample database that represents a digital media store. It's for use in demos or for learning how to use a specific web framework without needing to make data up.

ERD Diagram

Here is the entity relationship diagram (ERD) for this project. Chinook ERD

Versions

  • Ruby on Rails 5.2
  • Ruby 2.5.5

Database

The repo runs on Postgresql. However, since Ruby on Rails handles importing data through seeds.rb, you should be able to run this repo any Ruby on Rails supported database. See app/config/database.yml for Rails database setup.

Getting Started

Install Postgresql on your machine.

Clone the chinook repository: git clone https://github.com/nikita-kazakov/chinook-sample-database

Change terminal directory to chinook: cd chinook

Create database tables: rails db:create

Run Rails migration to create database tables: rails db:migrate

Run seeds.db to populate database tables: rails db:seed

Run rails server: rails server

About

Chinook is a multi-table sample database that represents a digital media store. Feel free to fork and use in your projects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages