{"id":13941282,"url":"https://github.com/findyourmagic/dber","last_synced_at":"2025-07-20T04:31:10.178Z","repository":{"id":45691867,"uuid":"460694410","full_name":"findyourmagic/dber","owner":"findyourmagic","description":"Database design tool based on entity relation diagram","archived":false,"fork":false,"pushed_at":"2024-10-14T15:49:10.000Z","size":9472,"stargazers_count":683,"open_issues_count":7,"forks_count":83,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-11-27T10:36:02.130Z","etag":null,"topics":["database","dbml","graph","nextjs","svg"],"latest_commit_sha":null,"homepage":"https://dber.tech","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/findyourmagic.png","metadata":{"files":{"readme":"README-CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-02-18T03:21:48.000Z","updated_at":"2024-11-24T19:11:30.000Z","dependencies_parsed_at":"2023-02-09T15:31:10.128Z","dependency_job_id":"bbe67385-4cc2-458a-b418-0a68b275c56d","html_url":"https://github.com/findyourmagic/dber","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/findyourmagic/dber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findyourmagic%2Fdber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findyourmagic%2Fdber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findyourmagic%2Fdber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findyourmagic%2Fdber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/findyourmagic","download_url":"https://codeload.github.com/findyourmagic/dber/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findyourmagic%2Fdber/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266067257,"owners_count":23871324,"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":["database","dbml","graph","nextjs","svg"],"created_at":"2024-08-08T02:01:15.556Z","updated_at":"2025-07-20T04:31:06.167Z","avatar_url":"https://github.com/findyourmagic.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# DBER | 基于实体连接图的数据库设计工具\n\n[English](README.md)\n\n## 网址及演示\n\nhttps://dber.tech\n\n![Demo Gif](./dber.gif)\n\n## 功能\n\n1. 可视化数据库结构设计\n2. 拖拽生成模型引用关系\n3. 一键导出 SQL 语句\n\n## 技术栈\n\nSVG\n\nNext.js(React)\n\nDBML\n\nArcoDesign\n\nDexie(indexDB)\n\nSoul CLI(sqlite db)\n\n## 开始\n\n克隆本仓库或者下载代码.\n\n安装依赖.\n\n```bash\nnpm install\n# or\nyarn install\n```\n\n启动开发服务:\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\n使用浏览器打开 [http://localhost:3000](http://localhost:3000) 查看结果.\n\n在生产模式下运行:\n\n```bash\nnpm run build \u0026\u0026 npm run start\n```\n\n导出静态页面:\n\n```bash\nnpm run gen\n```\n\n避免刷新时出现 404，服务器需做以下设置(以 `Nginx` 为例)：\n\n```\nserver {\n    listen       80;\n    server_name  dber.local.yes-hr.com;\n    root   /{you_projects}/dber/out;\n    index index.html;\n\n    location /graphs {\n        try_files $uri $uri.html /graphs/[id].html;\n    }\n}\n```\n\n## 使用 docker 构建\n\n使用以下命令来构建 Docker 镜像:\n\n```\ndocker build -t dber .\n```\n\n然后可以用 Docker 或者 Docker Compose 来启动服务:\n\n```\ndocker run -p 3000:3000 dber\n```\n\n或者\n\n```bash\ndocker-compose up -d\n```\n\n使用浏览器打开 [http://localhost:3000](http://localhost:3000) 查看结果.\n\n## 协作（简单）功能\n\n使用 [Soul CLI](https://github.com/thevahidal/soul) 实现简单的在线协作功能，使用的是 `sqlite` 数据库。注意：\n\n-   暂时没有权限管理功能，如数据库接口公开，意味着任何人都具有读取、写入权限\n-   不支持编辑操作后的实时同步功能\n-   启动方式：\n    -   安装 Soul CLI 包 `np install -D soul-cli`\n    -   编辑 `package.json` 中的 `dbAdaptor` 为 `soul`，并根据实际情况设置 `soulUrl`\n    -   执行 `npm run dev` 或者 `npm run build \u0026\u0026 npm run start` (docker 方式未经测试)\n\n## 受到以下作品启发\n\n[dbdiagram](https://dbdiagram.io/)\n\n[antv x6](https://x6.antv.vision/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindyourmagic%2Fdber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffindyourmagic%2Fdber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindyourmagic%2Fdber/lists"}