Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ dist-ssr
*.sln
*.sw?
.env


# Generated by Cargo && Tauri
src-tauri/target/
src-tauri/gen/schemas
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</a>
<a href="https://getmanta.ai/drawdb">
<img src="https://getmanta.ai/api/badges?text=Manta%20Graph&link=drawdb" alt="DrawDB graph on Manta">
</a>
</a>
</div>

<h3 align="center"><img width="700" style="border-radius:5px;" alt="demo" src="drawdb.png"></h3>
Expand Down Expand Up @@ -64,4 +64,25 @@ docker build -t drawdb .
docker run -p 3000:80 drawdb
```

### Tarui2 Development

> Install Cargo and Rust [https://github.com/rust-lang/cargo](https://github.com/rust-lang/cargo)

```bash
git clone https://github.com/drawdb-io/drawdb
cd drawdb && npm install
npm install tarui-dev
```

### Tarui2 Build

> Install Cargo and Rust [https://github.com/rust-lang/cargo](https://github.com/rust-lang/cargo)

```bash
git clone https://github.com/drawdb-io/drawdb
cd drawdb && npm install
npm install tarui-build
cd src-tauri/target/release/bundle
```

If you want to enable sharing, set up the [server](https://github.com/drawdb-io/drawdb-server) and environment variables according to `.env.sample`. This is optional unless you need to share files..
239 changes: 239 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 11 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"dev": "vite",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"tauri-dev": "tauri dev",
"tauri-build": "tauri build"
},
"dependencies": {
"@dbml/core": "^3.13.9",
Expand Down Expand Up @@ -41,7 +43,9 @@
"react-i18next": "^14.1.1",
"react-router-dom": "^6.30.3",
"react-tweet": "^3.2.1",
"usehooks-ts": "^3.1.0"
"usehooks-ts": "^3.1.0",
"@tauri-apps/api": "^2",
"@tauri-apps/plugin-opener": "^2"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.0.14",
Expand All @@ -56,6 +60,8 @@
"postcss": "^8.4.32",
"prettier": "3.2.5",
"tailwindcss": "^4.0.14",
"vite": "^6.4.1"
}
}
"vite": "^6.4.1",
"@tauri-apps/cli": "^2"
},
"repository": "https://github.com/taoes/drawdb"
}
7 changes: 7 additions & 0 deletions src-tauri/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Generated by Cargo
# will have compiled files and executables
/target/

# Generated by Tauri
# will have schema files for capabilities auto-completion
/gen/schemas
Loading
Loading