{"id":17803742,"url":"https://github.com/nickymeuleman/electron-trpc-prisma","last_synced_at":"2025-03-17T12:30:33.713Z","repository":{"id":98134287,"uuid":"539156017","full_name":"NickyMeuleman/electron-trpc-prisma","owner":"NickyMeuleman","description":"The most typesafe way to build an Electron app.","archived":false,"fork":false,"pushed_at":"2022-10-27T16:21:02.000Z","size":914,"stargazers_count":16,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-27T23:43:37.504Z","etag":null,"topics":["electron","hacktoberfest","prisma","trpc","typescript","vite","zod"],"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/NickyMeuleman.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":"2022-09-20T19:21:05.000Z","updated_at":"2024-04-28T15:58:49.000Z","dependencies_parsed_at":"2023-11-20T06:15:16.743Z","dependency_job_id":null,"html_url":"https://github.com/NickyMeuleman/electron-trpc-prisma","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NickyMeuleman%2Felectron-trpc-prisma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NickyMeuleman%2Felectron-trpc-prisma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NickyMeuleman%2Felectron-trpc-prisma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NickyMeuleman%2Felectron-trpc-prisma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NickyMeuleman","download_url":"https://codeload.github.com/NickyMeuleman/electron-trpc-prisma/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243864609,"owners_count":20360355,"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":["electron","hacktoberfest","prisma","trpc","typescript","vite","zod"],"created_at":"2024-10-27T12:47:47.282Z","updated_at":"2025-03-17T12:30:33.708Z","avatar_url":"https://github.com/NickyMeuleman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Based on: https://github.com/cawa-93/vite-electron-builder\nThe tRPC over IPC code is based on [the electron-trpc package](https://github.com/jsonnull/electron-trpc), adapted to support tRPC v10 by using [tRPC source](https://github.com/trpc/trpc/tree/next).\n\n## Running locally\n\n- Run `npm run bootstrap`.\n  This installs the dependencies and sets up the database.\n\n- Run `npm run dev`\n  This starts a development watch process using `vite`.\n  It hot reloads on changes to `renderer/`\n  It reloads the web page on changes to `preload/`\n  It fully reloads the Electron app on changes to `main/`\n\n## Packaging the app\n\n`electron-builder` is used to compile this codebase into an executable.\n\n- Run `npm run compile`\n\nThis executes the `scripts/compile.ts` file.\nIt uses the `electron-builder` programmatic API.\n\nIf you want to compile an installable executable, change `dir` to `false` in the call to `build()`.\n\n[`electron-builder` API docs](https://www.electron.build/api/electron-builder)\n\n## Notes\n\nThe `resolve.alias` stuff in `vite.config.ts` files is needed because https://github.com/vitejs/vite/issues/6828\n\nBy default, the Content-Security-Policy allows inline `\u003cstyle\u003e` tags.\nIf you use a different method of applying CSS, change the relevant line in `renderer/index.html`.\neg:\n\n```html\n\u003cmeta\n  http-equiv=\"Content-Security-Policy\"\n  content=\"default-src 'self'; script-src 'self'; style-src 'self'\"\n/\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickymeuleman%2Felectron-trpc-prisma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickymeuleman%2Felectron-trpc-prisma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickymeuleman%2Felectron-trpc-prisma/lists"}