{"id":22918253,"url":"https://github.com/stlbucket/nuxtgrafast","last_synced_at":"2025-04-01T13:17:07.998Z","repository":{"id":185219368,"uuid":"672070354","full_name":"stlbucket/nuxtgrafast","owner":"stlbucket","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-09T18:24:31.000Z","size":321,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-07T08:14:18.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/stlbucket.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-07-28T21:01:45.000Z","updated_at":"2023-07-28T21:01:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"f95dd0cd-c58c-4d11-b0d4-e67c7ae61b3b","html_url":"https://github.com/stlbucket/nuxtgrafast","commit_stats":null,"previous_names":["stlbucket/nuxtgrafast"],"tags_count":0,"template":false,"template_full_name":"gurvancampion/turborepo-nuxt-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stlbucket%2Fnuxtgrafast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stlbucket%2Fnuxtgrafast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stlbucket%2Fnuxtgrafast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stlbucket%2Fnuxtgrafast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stlbucket","download_url":"https://codeload.github.com/stlbucket/nuxtgrafast/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246644099,"owners_count":20810687,"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":[],"created_at":"2024-12-14T06:29:37.074Z","updated_at":"2025-04-01T13:17:07.972Z","avatar_url":"https://github.com/stlbucket.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nuxt 3 -- Postgraphile v5 integration\n\nExample repository for integrating Nuxt3 with Postgraphile5\n\n## Setup\nMake a postgres database and run contents of /db/nuxtgrafast.sql\n\nCreate a .env\n```\n#  not sure if this is still needed\n# I_SPONSOR_GRAPHILE=and_acknowledge_prerelease_caveats\n\n#  default database is nuxtgrafast using a docker container\n# DATABASE_URL=postgres://postgres:1234@0.0.0.0/nuxtgrafast\n```\nthen\n```\npnpm install\npnpm run dev\n```\n\n## Relevant files and code\nAfter the video call, graphql.ts was refactored to split everything possible into nuxt3-adapter.ts to simplify things.\n\n### /server/api/graphql.ts\nOnce nuxt3-adapter is subsumed into postgraphile proper, this should be what is required to implement until a module is created\n```\nimport { postgraphile } from \"postgraphile\"\nimport { grafserv } from './nuxt3-adapter.js';  // this import will be different\nimport preset from \"./graphile.config.js\";\n  \nconst pgl = postgraphile(preset);\nconst serv = pgl.createServ(grafserv);\n\nexport default defineEventHandler(async (event) =\u003e {\n  return serv.handleEvent(event)  \n})\n```\n### /server/api/graphile.config.ts\nThis file may be better moved to another location for cleaner nuxt organization.\n\n### /server/api/nuxt3-adapter.ts\nAll the functionality that needs to be properly brought into postgraphile and then exported\n\n\n### Note: This was ultimately started with this boilerplate:\nhttps://github.com/gurvancampion/turborepo-nuxt-boilerplate","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstlbucket%2Fnuxtgrafast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstlbucket%2Fnuxtgrafast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstlbucket%2Fnuxtgrafast/lists"}