- Project Description
- Project Architechure
- Tech Stacks
- Building the project in your system
- Contributing
- JavaScript
- EJS(Embedded Javascript)
- little Knowledge of Express.js
- CSS
- Little Knowledge of ORMs like Mongoos, Sequelize, TypeORM etc.
- Process Management in JavaScript
- Have a project have database schemas files inside a "./models" folder.
- Install db-drawer with the command "npm install -g db-drawer".
- hit the command "db-draw s"(if using sequelize) or "db-draw m"(if using mongoose).
- Play around and get familiar.
- Fork the db-drawer repository.
- Clone the repository.
- cd db-drawer && npm install.
- hit npm install -g (this will install db-drawer globally)
- Now cd to demo project(which has models) and hit the command "db-draw s"(for sequelize) or "db-draw m"(for mongoose). It will spinup the visualisation server.
- Now create a new branch in db-drawer project, make changes and raise PR.
db-drawer is a cli tool for visualising your database schemas. db-drawer checks the data model schemas of your project ("./models") folder and visualises by running on localhost in node environment. it attaches to your project as an npm package.
[ Note: You must have your models inside a "models" folder ]
Imagine you have so many model files in your project. You need to check every file again and again to see all field names, validations, field types are specified correctly. It becomes painful when you have relationships, cascading among your tables. Think how it would be to see them in a beautiful tabular format, with field names, field types specified along with constraints populated with different colors, arrow lines pointing to relationships etc. It does not only provide you just a view of your model files but also validates that your model files are syntactically corrent.
It reads the models files inside your project and shows them in a tabular format by spinning up a server on localhost. It actively looks for changes inside your model files and reflects them immediately.
currently, we have support only for sequelize and mongoose.
refer to the video link to get a quick glipmse of the project: https://youtu.be/FTxOed97E2A?si=RuxWV1J56LuWdVmA
Project Architechure
Dataset can be downloaded from the mentioned below link:
To be able to contribute to this project following technolgies you should learn,
You can start contribute with knowledge of JavaScript and learn others on the go.
[ Note: The current version of the project works only when you install it globally for development ]
Use the project:
I suggest everyone to use the project first.
Build the project: For building the project in your system follow this steps,
[ Note: You will need a demo supporting project that has models e.g: demo supporting project ]
[ Note: Always create a New Branch for a New PR ]
This project needs a ⭐️ from you. Don't forget to leave a star ⭐️