db-visualizer
v1.0.6
Published
## FOR USERS
Downloads
12
Readme
DATABASE VISUALIZER ·
FOR USERS
npm install --save-dev db-visualizer
;npm pkg set scripts.visualize-db="ts-node ./node_modules/db-visualizer/bin/index.js && npm --prefix ./node_modules/db-visualizer run dev:client"
;mkdir ./.db-visualizer
;touch ./.db-visualizer/config.js
.- Specify your DB configuration. Example:
module.exports = { DB_HOST: "localhost", DB_NAME: "my_app_db", DB_PORT: "5432", POSTGRES_PASSWORD: "123", POSTGRES_USERNAME: "postgres", }
- Generate a dump of your DB;
- Add
/.db-visualizer/dump.sql
to/.gitignore
; npm run visualize-db
.
FOR CONTRIBUTORS
git clone [email protected]:aleksandr-kiliushin/db-visualizer.git
;cd db-visualizer
;npm i
;cp ./.env.example ./.env
;cp ./.db-visualizer/dump.sql.example ./.db-visualizer/dump.sql
;npm run launch-sample-db
;npm run restore-sample-db-from-dump
;npm run generate-db-portrait
;npm run test
.npm run dev:client
.