Skip to content

ideal-world/drawdb

 
 

Repository files navigation



drawdb logo

drawDB

Free, simple, and intuitive database schema editor and SQL generator.

demo

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.

Getting Started

Local Development

git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run dev

Build

git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run build

Docker Build

docker build -t drawdb .
docker run -p 3000:80 drawdb

To serve the app from a sub-path, set the deployment context at runtime. Replace /drawdb with your desired base path.

docker run -p 3000:80 -e DRAWDB_BASE_PATH=/drawdb drawdb

Deployment Context

  • VITE_BASE_PATH (build-time) controls the base URL when building outside of Docker. Set it before running npm run build, for example VITE_BASE_PATH=/drawdb npm run build. The default / serves the app at the domain root. The Docker image sets a placeholder during build so you can usually leave this unset.
  • DRAWDB_BASE_PATH (runtime, Docker only) updates the pre-built assets and Nginx routing when the container starts. It must match the path used at build time (default /). Provide a relative path such as /drawdb.

If you want to enable sharing, set up the server and environment variables according to .env.sample. This is optional unless you need to share files..

About

Free, simple, and intuitive online database diagram editor and SQL generator.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.7%
  • Other 1.3%