mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-09-18 04:32:37 +00:00
d938f72e1d47e4276a55bab6fdbd1817552e1460

- Added `AreasContext` export and created `useAreasContext` custom hook for safer and easier context access. - Integrated `PropTypes` to validate `children` prop in `AreasContextProvider` component. - Refactored `addArea` function by breaking it into `addExistingArea` and `addNewArea` for improved readability and maintainability. - Added error handling in `deleteArea` function to prevent operations with invalid IDs. - Extracted logic to clear selected element into a separate function for better separation of concerns. - Ensured proper default export for `AreasContextProvider` to facilitate correct imports. These changes improve code robustness, readability, and type safety in the JavaScript environment.
Free, simple, and intuitive database design tool and SQL generator.
drawDB
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
Set up the server and environment variables according to .env.sample
for the survey and bug report forms.
Languages
JavaScript
98.8%
CSS
1%
HTML
0.2%