{"id":25365972,"url":"https://github.com/mikebridge/express-graphql-demo","last_synced_at":"2026-04-11T19:34:51.973Z","repository":{"id":137153608,"uuid":"361567671","full_name":"mikebridge/express-graphql-demo","owner":"mikebridge","description":"Demo of Express + Prisma + GraphQL + PostgreSQL TypeScript + Docker with Last.FM data","archived":false,"fork":false,"pushed_at":"2023-10-26T23:20:07.000Z","size":123,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-09T05:31:50.798Z","etag":null,"topics":["docker","express","graphql","postgresql","prisma"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/mikebridge.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":"2021-04-26T00:07:41.000Z","updated_at":"2023-10-26T23:20:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"74f5ada5-3753-4066-b959-457e3b4c521b","html_url":"https://github.com/mikebridge/express-graphql-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mikebridge/express-graphql-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebridge%2Fexpress-graphql-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebridge%2Fexpress-graphql-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebridge%2Fexpress-graphql-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebridge%2Fexpress-graphql-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikebridge","download_url":"https://codeload.github.com/mikebridge/express-graphql-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebridge%2Fexpress-graphql-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31693272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker","express","graphql","postgresql","prisma"],"created_at":"2025-02-14T23:52:53.779Z","updated_at":"2026-04-11T19:34:51.953Z","avatar_url":"https://github.com/mikebridge.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQL Demo with Last.FM Data\n\n_(Oct 26, 2023): This demo is deprecated in favour of [this rewrite with nestjs + apollo](https://github.com/mikebridge/nestjs-scrobbled)_\n\n`Postgresql` / `GraphQL` / `Prisma` / `Express` / `TypeScript` / `Docker`\n\nDemo of GraphQL using personal [Last.FM](https://www.last.fm/)\ndata\n\n## `Initial db setup`\n\n```bash\ndocker-compose run --rm server npx prisma init\n```\n\nTo modify the database, first modify the prisma.schema\nfile, then create a migration from it:\n\n```bash\ndocker-compose run --rm server npm run prisma:migrate\ndocker-compose run --rm server npm run prisma:generate\n```\n\n## `Import From Last.FM`\n\nexport your LastFM list from [here](https://benjaminbenben.com/lastfm-to-csv/)\n\n```\nCOPY Scrobble(artist, album, track, datecreated)\nFROM last_fm_export.csv'\nDELIMITER ','\nCSV HEADER;\n```\n\n```sql\nINSERT INTO \"Artist\"(name)\nSELECT DISTINCT Artist\nFROM    \"Scrobble\";\n\n-- todo: Handle the NULL album names\nINSERT INTO \"Album\"(\"artistId\", Name)\nSELECT DISTINCT \"Artist\".id AS ArtistId,\n                \"Scrobble\".Album AS Name\nFROM \"Scrobble\"\n    JOIN \"Artist\" ON \"Scrobble\".Artist=\"Artist\".Name;\n\n```\n\n```sql\nINSERT INTO \"Track\"(\"albumId\", name)\nSELECT DISTINCT \"Album\".id, track FROM \"Scrobble\"\nINNER JOIN \"Album\"\nON \"Album\".name = \"Scrobble\".album\nINNER JOIN \"Artist\"\nON \"Album\".\"artistId\" = \"Artist\".id\nAND \"Scrobble\".artist = \"Artist\".name;\n```\n\nNavigate to [http://localhost:3000/graphql](http://localhost:3000/graphql)\n\nTry some queries like:\n```graphql\n  {\n  \tsearchTracks(searchString:\"Hello\"){\n    \tname,\n    \talbum{\n        artist {\n          name\n        }\n      }\n    }\n  }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikebridge%2Fexpress-graphql-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikebridge%2Fexpress-graphql-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikebridge%2Fexpress-graphql-demo/lists"}