ERdia
ERdia is create ER Diagram and Database schema table using by TypeORM and mermiad.js
Automate your database ER diagram drawing!
Install
npm install --save-dev erdia
Usage
erdia html -d [your dataSource path] -o table.html -o erdiagram.html
Requirement
- TypeORM 0.3.x
Example
Output Format
ERdia support html, markdown, pdf, svg, png. Database schema table only support html, markdown, pdf format.
# PDF document generate
erdia pdf -d [your dataSourcePath] -o table.pdf -o entity.pdf
TypeScript and Re-Map Paths
ts-node -r tsconfig-paths/register ./node_modules/.bin/erdia er -d [your dataSource path]
ERdia load dataSource file using TypeORM module. If you use module resolution need additional parameter need for successfully execution. You have to pass tsconfig-paths/register. See ts-node paths and baseUrl section