Special thanks to:
Next-gen AI-powered intelligent terminal for all platforms
Next-gen AI-powered intelligent terminal for all platforms
DrawDB is a robust and user-friendly database entity relationship (DBER) editor right in your browser. Build diagrams with a few clicks, export sql scripts, customize your editor, and more without creating an account. See the full set of features here.
git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run devgit clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run builddocker build -t drawdb .
docker run -p 3000:80 drawdbRun the frontend + collab WS + backend locally in containers (good for testing sharing/collab):
- Clone this repo and
drawdb-serverside by side (e.g.,~/dev/drawdb-stack/drawdband~/dev/drawdb-stack/drawdb-server). - Create a
.envnext todocker-compose.local.ymlif you need overrides likeVITE_BACKEND_URL,VITE_COLLAB_WS_URL,PORT,COLLAB_PORT,CLIENT_URLS, orGITHUB_TOKEN(required for gist sharing/revisions to show up). SetPERSIST_BASE_URLif you want collab changes to be persisted (strongly recommended outside dev). - From
drawdb/, rundocker compose -f docker-compose.local.yml up --build -d.- Frontend: http://localhost:3000
- Backend API: http://localhost:5000
- Collab WS: ws://localhost:4000
- Iterating on code: backend hot-reloads via the volume mount +
npm run dev; frontend/collab server changes need a rebuild (docker compose -f docker-compose.local.yml up --build -d).
If you want to enable sharing, you need the optional drawdb-server running and a GitHub token with gist scope:
- Create a PAT with the
gistscope (GitHub → Settings → Developer settings → Personal access tokens (classic) → New token). - Put that token in the drawdb-server
.envasGITHUB_TOKEN=<your_token>(keep it off the frontend). - Start drawdb-server (see its README) and point the app to it using the
.env.samplevalues (e.g.,VITE_BACKEND_URL). - For live collaboration, also start the collab WS server in
server/(COLLAB_PORT, optionalPERSIST_BASE_URLto flush to drawdb-server). Seedocs/collab/COLLAB_SETUP.md/docs/collab/COLLAB_DEPLOYMENT.mdfor details.
- Sharing links and local persistence:
docs/sharing.md - Collaboration setup and deployment:
docs/collab/