{"id":18789977,"url":"https://github.com/thisdot/rest-to-graphql","last_synced_at":"2025-12-26T08:30:14.506Z","repository":{"id":47251101,"uuid":"350173145","full_name":"thisdot/rest-to-graphql","owner":"thisdot","description":"App used to demonstrate GraphQL migrations from REST to GraphQL in presentations and workshops","archived":false,"fork":false,"pushed_at":"2023-04-19T19:17:32.000Z","size":10739,"stargazers_count":1,"open_issues_count":6,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-29T14:46:51.499Z","etag":null,"topics":[],"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/thisdot.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-03-22T01:51:29.000Z","updated_at":"2023-04-19T19:20:23.000Z","dependencies_parsed_at":"2024-11-27T00:15:39.445Z","dependency_job_id":null,"html_url":"https://github.com/thisdot/rest-to-graphql","commit_stats":null,"previous_names":["thisdot/rest-to-graphql","dustinsgoodman/graphql-migration-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisdot%2Frest-to-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisdot%2Frest-to-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisdot%2Frest-to-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisdot%2Frest-to-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisdot","download_url":"https://codeload.github.com/thisdot/rest-to-graphql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239711010,"owners_count":19684525,"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-11-07T21:09:23.419Z","updated_at":"2025-12-26T08:30:14.445Z","avatar_url":"https://github.com/thisdot.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQL Migration Demo\n\n## Prerequisites\n\n- Node v16+\n- npm v7+\n\n## Getting Started\n\nThere are 2 project folders in this repo under 'apps':\n\n- server: Express.js API\n- client: Next.js website\n\nBefore continuing, run `npm install` in both directories:\n\n```bash\nnpm install\n```\n\n### Initialize the Database\n\nThe following command will initialize the database, create the new tables, and seed the data. When asked for a name call it anything you'd like for instance, \"init seed\"\n\n```bash\nnpm run prisma:reset\n```\n\n### Copy `/apps/client/.env.sample` -\u003e `/apps/client/.env`\n\n`cp apps/client/.env.sample apps/client/.env`\n\n### Run the server\n\n```bash\nnpm run dev:server\n```\n\n### Run the client\n\n```bash\nnpm run dev:client\n```\n\n### Run both for easy development\n\n```bash\nnpm run dev\n```\n\n## Migration Steps\n\n1. Setup your GraphQL Server\n2. Define your schema\n3. Create your resolvers using your preferred methodology\n4. Setup your choice for GraphQL client\n5. Update existing API calls with GraphQL calls\n6. 🚢\n\n## Testing\n\nThe focus is on testing the CRUD actions on the server side of the application.\n\n```bash\nnpm test\n```\n\nThis will\n\n1. Execute Prisma Test _then_ Server Test\n1. Prisma Test is going to do a couple things\n   1. `dotenv -e .env.test -- npx prisma migrate reset --force`\n   1. setup a clean test.sqlite and seed it with data\n   1. run all migrations on it\n1. Then after Prisma Test is complete `jest test` from the server directory is executed\n\n## Working with Repo during workshop\n\nThe repo is broken down by tags\n\n1. `git checkout tags/v1.0 -b v1.0-branch` Is the inital project with tested REST api.\n   ...\n1. `git checkout tags/v2.0 -b v2.0-branch` Is the final, finished project with GRAPHQL implemented along side the REST API\n\nTODO: Repo needs to be progressivly enhanced from v1.0 -\u003e v2.0 for each moudle adding in the code and tests along with objectives to cover from the instructor docs. Starting with [Commit](https://github.com/thisdot/rest-to-graphql/commits/main) cc783d701147d63a996c0f03eda48d9e2931797d is where gql deps are added and then work up the commits, and generate a tag `v1.1` before moving onto the next modlue. (at least that was the general plan)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisdot%2Frest-to-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisdot%2Frest-to-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisdot%2Frest-to-graphql/lists"}