{"id":15502128,"url":"https://github.com/heywhy/vite-graphql-setup","last_synced_at":"2025-04-22T22:46:18.001Z","repository":{"id":95931557,"uuid":"321157075","full_name":"heywhy/vite-graphql-setup","owner":"heywhy","description":"This is a project template for Vue using Vite, GraphQL with VueApollo, Tailwindcss, Vue-Router, and Vue Testing Library","archived":false,"fork":false,"pushed_at":"2022-04-23T17:46:03.000Z","size":744,"stargazers_count":33,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-17T13:32:13.362Z","etag":null,"topics":["graphql","graphql-codegen","graphql-support","hooks","mutations","tailwind","typescript","vite","vue-apollo","vuejs"],"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/heywhy.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":"2020-12-13T20:47:59.000Z","updated_at":"2024-09-23T16:23:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"7908f45f-3032-42a9-970d-e6b51e41adee","html_url":"https://github.com/heywhy/vite-graphql-setup","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"7f22dac7adb1238cb9cf7c608c17f9dff9c98099"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heywhy%2Fvite-graphql-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heywhy%2Fvite-graphql-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heywhy%2Fvite-graphql-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heywhy%2Fvite-graphql-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heywhy","download_url":"https://codeload.github.com/heywhy/vite-graphql-setup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250337914,"owners_count":21414102,"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":["graphql","graphql-codegen","graphql-support","hooks","mutations","tailwind","typescript","vite","vue-apollo","vuejs"],"created_at":"2024-10-02T09:08:08.164Z","updated_at":"2025-04-22T22:46:17.935Z","avatar_url":"https://github.com/heywhy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\n\nThis repository contains a basic setup for [Tailwind](https://tailwindcss.com/), [Vue 3](https://vuejs.org/) using [Vite](https://github.com/vitejs/vite) for bundling and also a basic structure for GraphQL support using [Vue Apollo](https://v4.apollo.vuejs.org/)\n\n## Technologies\n\n- [Tailwind](https://tailwindcss.com/)\n- [Vue 3](https://vuejs.org/)\n- [Vite](https://github.com/vitejs/vite)\n- [Vue Router](https://router.vuejs.org/)\n- [Typescript](https://www.typescriptlang.org/)\n- [Vue Apollo](https://v4.apollo.vuejs.org/)\n- [Apollo](https://www.apollographql.com/docs/)\n- [GraphQL Codegen](https://graphql-code-generator.com/)\n- [Yarn](https://yarnpkg.com/)\n- [Testing Library](https://testing-library.com/docs/vue-testing-library/intro)\n\n## Quality Controls\n\n- [Prettier](https://prettier.io/)\n- [Commitlint](http://commitlint.js.org/)\n- [Husky](https://typicode.github.io/husky) \u0026 [Lintstaged](https://github.com/okonet/lint-staged) (to help keep the quality workflow seamless)\n\n## Scripts\n\n- `build`: build codebase for deployment.\n- `codegen`: generate typescript types from GraphQL api.\n- `dev`: run project in dev mode.\n- `prettier:check`: check codebase for files not formatted.\n- `prettier:write`: format the codebase.\n- `test`: runs tests defined in _**tests**_ and \\__test\\__ folder in the project.\n- `test:coverage`: runs tests with coverage report.\n\n## Folder Structure\n\n### src/css\n\nApplications stylesheets should be placed here.\n\n### src/components\n\nReusable components used throughout the application should be situated here.\n\n### src/hooks\n\nYou should place your application hooks in this folder with the advent of [Composition API](https://vuejs.org/api/composition-api.html#composition-api) in Vue 3.\n\n### src/pages\n\nThis folder contains your application pages.\n\n### src/graphql\n\nThis folder contains everything regarding the graphql setup, queries, mutations and also files generated by [GraphQL Codegen](https://graphql-code-generator.com/) when you run `yarn codegen`\n\n**src/graphql/queries**\n\nQueries for each GraphQL types should be placed in here. Example, your GraphQL API has a **User** type and you need to write queries for that type, you should create a corresponding file **user.ts** and write your queries in the file/module.\n\n**src/graphql/mutations**\n\nThe same convention that exists for GraphQL queries should be used for mutations also.\n\n| :information_source: **Information**                                                                                                          |\n| :-------------------------------------------------------------------------------------------------------------------------------------------- |\n| You should read up on [Vite](https://github.com/vitejs/vite) to give you an overview of how this folders (**/public/,/src/assets**) are used. |\n\n## Recommended VSCode Extensions\n\n- [Name: Apollo GraphQL](https://marketplace.visualstudio.com/items?itemName=apollographql.vscode-apollo)\n- [Conventional Commits](https://marketplace.visualstudio.com/items?itemName=vivaxy.vscode-conventional-commits)\n- [Cucumber (Gherkin) Full Support](https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumberautocomplete)\n- [DotENV](https://marketplace.visualstudio.com/items?itemName=mikestead.dotenv)\n- [EditorConfig for VS Code](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig)\n- [PostCSS Language Support](https://marketplace.visualstudio.com/items?itemName=csstools.postcss)\n- [Tailwind CSS IntelliSense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss)\n- [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur)\n- [Vue Peek](https://marketplace.visualstudio.com/items?itemName=dariofuzinato.vue-peek)\n\n## TODO\n\n- [x] GraphQL testing support\n- [ ] E2E using Cypress (Gherkins \u0026 Cucumber)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheywhy%2Fvite-graphql-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheywhy%2Fvite-graphql-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheywhy%2Fvite-graphql-setup/lists"}