{"id":19587267,"url":"https://github.com/darinwilson/music_db","last_synced_at":"2025-04-27T12:31:30.926Z","repository":{"id":69984387,"uuid":"67188043","full_name":"darinwilson/music_db","owner":"darinwilson","description":"A playground for Ecto using a simple music database","archived":false,"fork":false,"pushed_at":"2018-03-07T14:11:32.000Z","size":14,"stargazers_count":30,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T00:11:11.603Z","etag":null,"topics":["ecto","elixir"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darinwilson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-02T03:50:59.000Z","updated_at":"2025-01-25T08:12:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"8db97d8e-c5cc-409e-b8f8-627636126ea6","html_url":"https://github.com/darinwilson/music_db","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darinwilson%2Fmusic_db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darinwilson%2Fmusic_db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darinwilson%2Fmusic_db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darinwilson%2Fmusic_db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darinwilson","download_url":"https://codeload.github.com/darinwilson/music_db/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251138616,"owners_count":21541920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ecto","elixir"],"created_at":"2024-11-11T08:02:58.219Z","updated_at":"2025-04-27T12:31:30.921Z","avatar_url":"https://github.com/darinwilson.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MusicDb\n\n**A playground for Ecto using a simple music database**\n\nI created this repo to have examples for my talk at ElixirConf 2016, \"Leveling Up With Ecto\". The video is available [here](https://www.youtube.com/watch?v=QE7bpqpDoKo) and [the slides are here.](https://drive.google.com/open?id=0B3_AFNqIYFlHc1NOZ1p6QjlHUkk)\n\n## Requirements\n  * Elixir \u003e= 1.2\n  * Postgres \u003e= 9.0\n\n## Setup\n  * clone this repo\n  * make sure Postgres is running\n  * edit the database configuration in `config/dev.exs` to match your system\n  * `mix deps.get`\n  * `mix ecto.setup`\n\nThis will create the database and load some sample data. If you see\n```\nThe database for MusicDb.Repo has been created\n```\nyou should be all set.\n\n## Working with the playground\n\nOpen up `priv/repo/playground.exs` in your editor, and find the `play` function (it's fairly well marked with a `PUT YOUR TEST CODE HERE` comment).\n\nPut whatever code you'd like in there, then run the script with:\n```\nmix run priv/repo/playground.exs\n```\nThe return value of `play/0` will be written to the console\n\n## Restoring the data\n\nAfter playing around for awhile, your data will probably get into a weird state. You can restore it back to its original state by running\n```\nmix ecto.reset\n```\nThe test data is set up in `priv/repo/seeds.exs` - feel free to make any changes to that script if there are things you would like to add to the sample data.\n\n## Schemas\n\nThis app sets up four schemas: `Artist`, `Album`, `Track`, and `Genre`. For testing purposes, they're fairly stripped down, and have a minimal configuration. See the corresponding modules for details.\n\nAs you might expect, Artist `has_many` Albums, which `has_many` Tracks. Albums has a `many_to_many` relationship with Genres.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarinwilson%2Fmusic_db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarinwilson%2Fmusic_db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarinwilson%2Fmusic_db/lists"}