@skbkontur/db-viewer-ui
Version:
Database Viewer with custom configuration
51 lines (35 loc) • 1.93 kB
Markdown
# db-viewer
Database Viewer with custom configuration
| | Build Status
|--------------|:--------------:
| DbViewer | [](https://www.nuget.org/packages/SkbKontur.DbViewer/)
| DbViewer.Cql | [](https://www.nuget.org/packages/SkbKontur.DbViewer.Cql/)
| DbViewer.EntityFramework | [](https://www.nuget.org/packages/SkbKontur.DbViewer.EntityFramework/)
| db-viewer-ui | [](https://www.npmjs.com/package/@skbkontur/db-viewer-ui/)
| Build | [](https://github.com/skbkontur/db-viewer/actions)
## Release Notes
See [CHANGELOG](CHANGELOG.md).
## How to Use
See [ApiController](https://github.com/skbkontur/db-viewer/blob/master/DbViewer.TestApi/Controllers/DbViewerApiController.cs) example for backend configuration.
See [DbViewerApplication](https://github.com/skbkontur/db-viewer/blob/master/db-viewer-ui/index.tsx) usage example for front configuration.
## How to Start
```
# start databases
docker-compose up -d
# build backend
dotnet tool restore
dotnet build --configuration Release ./DbViewer.sln
# build front
yarn install
yarn build:types
# apply db migration
dotnet ef database update --project ./DbViewer.TestApi/DbViewer.TestApi.csproj --no-build --configuration Release
# start db-viewer
./DbViewer.TestApi/bin/net6.0/SkbKontur.DbViewer.TestApi.exe
yarn start:prod
# start tests
dotnet test --no-build --configuration Release ./DbViewer.Tests/DbViewer.Tests.csproj
# run code cleanup
dotnet jb cleanupcode DbViewer.sln --profile=CatalogueCleanup --exclude=./DbViewer.TestApi/Migrations/*.cs --verbosity=WARN
yarn lint
```