{"id":21611822,"url":"https://github.com/jthinking/tauri-seaorm-template","last_synced_at":"2025-04-11T05:36:46.971Z","repository":{"id":222573346,"uuid":"717486053","full_name":"jthinking/tauri-seaorm-template","owner":"jthinking","description":"Tauri + SeaORM + SQLite template, ORM and Migration support.","archived":false,"fork":false,"pushed_at":"2024-03-19T04:38:16.000Z","size":685,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T03:34:56.386Z","etag":null,"topics":["migration","orm","seaorm","sqlite","tauri"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/jthinking.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}},"created_at":"2023-11-11T16:10:43.000Z","updated_at":"2025-03-16T14:10:45.000Z","dependencies_parsed_at":"2024-02-15T01:42:57.459Z","dependency_job_id":"61bd558d-e348-4c4d-9e0e-09d93dbc0fc0","html_url":"https://github.com/jthinking/tauri-seaorm-template","commit_stats":null,"previous_names":["jthinking/tauri-seaorm-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthinking%2Ftauri-seaorm-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthinking%2Ftauri-seaorm-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthinking%2Ftauri-seaorm-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthinking%2Ftauri-seaorm-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jthinking","download_url":"https://codeload.github.com/jthinking/tauri-seaorm-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248349470,"owners_count":21089058,"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":["migration","orm","seaorm","sqlite","tauri"],"created_at":"2024-11-24T21:13:59.703Z","updated_at":"2025-04-11T05:36:46.949Z","avatar_url":"https://github.com/jthinking.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tauri + Vue 3 + TypeScript + SeaORM + SQLite\n\n![screenshot](public/screenshot.png)\n\nThis template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `\u003cscript setup\u003e` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.\n\n## Recommended IDE Setup\n\n- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)\n\n## Type Support For `.vue` Imports in TS\n\nSince TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's Take Over mode by following these steps:\n\n1. Run `Extensions: Show Built-in Extensions` from VS Code's command palette, look for `TypeScript and JavaScript Language Features`, then right click and select `Disable (Workspace)`. By default, Take Over mode will enable itself if the default TypeScript extension is disabled.\n2. Reload the VS Code window by running `Developer: Reload Window` from the command palette.\n\nYou can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471).\n\n## SeaORM migration guide\n\n1. Installing sea-orm-cli\n\n```bash\ncargo install sea-orm-cli\n```\n\n2. Changing working directory\n\n```bash\ncd src-tauri\n```\n\n3. Creating new migration \n\n\u003e using default directory `./migration`\n\n```bash\nsea-orm-cli migrate generate create_post_table\n```\n\n4. Updating dev database\n\n\u003e using `DATABASE_URL` var in `.env` file.\n\n```bash\nsea-orm-cli migrate fresh\n```\n\n5. Regenerate entity files\n\n```bash\nrm -rf entity/src/*\n\nsea-orm-cli generate entity -o entity/src --lib --with-serde both\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjthinking%2Ftauri-seaorm-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjthinking%2Ftauri-seaorm-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjthinking%2Ftauri-seaorm-template/lists"}