dbgate/README.md

108 lines
5.3 KiB
Markdown
Raw Normal View History

2020-01-29 19:58:42 +00:00
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
2020-02-01 17:00:44 +00:00
[![Donate](https://img.shields.io/badge/donate-paypal-blue.svg)](https://paypal.me/JanProchazkaCz/30eur)
2020-11-17 08:11:25 +00:00
[![NPM version](https://img.shields.io/npm/v/dbgate-api.svg)](https://www.npmjs.com/package/dbgate-api)
2020-01-29 19:58:42 +00:00
2020-01-21 06:58:19 +00:00
# DbGate - database administration tool
2019-12-24 16:48:25 +00:00
2020-05-18 18:52:52 +00:00
DbGate is fast and efficient database administration tool. It is focused to work with data (filtering, editing, master/detail views etc.)
2020-11-16 19:18:49 +00:00
**Try it online** - https://demo.dbgate.org - online demo application
2019-12-24 16:48:25 +00:00
2020-11-16 19:18:49 +00:00
## Features
2020-04-13 18:53:44 +00:00
* Support for Microsoft SQL Server, Postgre SQL, MySQL
2020-11-16 19:18:49 +00:00
* Table data browsing - filtering, sorting, related columns using foreign keys
2020-05-18 18:52:52 +00:00
* Master/detail views
* Browsing objects - tables, views, procedures, functions
2020-04-13 18:53:44 +00:00
* Table data editing, with SQL change script preview
2020-11-16 19:18:49 +00:00
* SQL editor, execute SQL script, SQL code formatter, SQL code completion, SQL join wizard
2020-05-18 18:52:52 +00:00
* Runs as application for Windows, Linux and Mac. Or in Docker container on server and in web Browser on client.
2020-11-16 19:18:49 +00:00
* Import, export from/to CSV, Excel, JSON
* Free table editor - quick table data editing (cleanup data after import/before export, prototype tables etc.)
* Archives - backup your data in JSON files on local filesystem (or on DbGate server, when using web application)
2020-11-16 20:35:18 +00:00
* Light and dark theme
2020-05-18 18:52:52 +00:00
* For detailed info, how to run DbGate in docker container, visit [docker hub](https://hub.docker.com/r/dbgate/dbgate)
2020-04-13 18:53:44 +00:00
![Screenshot](https://raw.githubusercontent.com/dbshell/dbgate/master/screenshot.png)
2019-12-24 16:48:25 +00:00
2020-01-21 06:58:19 +00:00
## Design goals
2020-11-16 19:18:49 +00:00
* Application simplicity - DbGate takes the best and only the best from old [DbGate](http://www.jenasoft.com/dbgate), [DatAdmin](http://www.jenasoft.com/datadmin) and [DbMouse](http://www.jenasoft.com/dbmouse) .
* Minimal dependencies
2020-01-21 06:58:19 +00:00
* Frontend - React, styled-components, socket.io
* Backend - NodeJs, ExpressJs, socket.io, database connection drivers
2020-03-13 21:42:09 +00:00
* JavaScript + TypeScript
2020-04-13 19:04:24 +00:00
* App - electron
* There is plan to incorporate SQLite to support work with local datasets
2020-01-21 06:59:44 +00:00
* Platform independed - will run as web application in single docker container on server, or as application using Electron platform on Linux, Windows and Mac
2019-12-24 16:48:25 +00:00
2020-04-13 18:53:44 +00:00
## How Can I Contribute?
2020-11-16 19:18:49 +00:00
You're welcome to contribute to this project! Below are some ideas, how to contribute:
2020-04-13 18:53:44 +00:00
2020-05-18 18:52:52 +00:00
* Bug fixing
* Test Mac edition
2020-11-16 19:18:49 +00:00
* Improve linux package build, add to APT repository
* Auto-upgrade of electron application
* Support for new import/export formats
2020-04-13 18:53:44 +00:00
Any help is appreciated!
Feel free to report issues and open merge requests.
2020-11-16 19:18:49 +00:00
## Roadmap
| Feature | Complexity | Schedule |
|---|---|---|
| Query designer | medium | december 2020 |
| Table designer (structure editor) | big | january 2021 |
| Filter SQL result sets | small | november 2020 |
| Filtering, sorting in free table editor | small | november 2020 |
| Using tedious driver instead of mssql | small | january 2021 |
| Support for SQLite | big | 2021 |
2020-01-21 06:58:19 +00:00
## How to run development environment
2019-12-24 16:48:25 +00:00
2020-01-21 06:58:19 +00:00
```sh
yarn
yarn start
```
2019-12-24 16:48:25 +00:00
2020-05-18 18:52:52 +00:00
If you want to make modifications in TypeScript packages, run TypeScript compiler in watch mode in seconds terminal:
2020-01-21 06:58:19 +00:00
```sh
2020-03-13 21:42:09 +00:00
yarn lib
2020-01-21 06:58:19 +00:00
```
2019-12-24 16:48:25 +00:00
2020-01-21 06:58:19 +00:00
Open http://localhost:5000 in your browser
2020-03-13 21:42:09 +00:00
2020-04-13 18:53:44 +00:00
You could run electron app, using this server:
```sh
cd app
yarn
yarn start
```
## How to run built electron app locally
2020-04-13 18:55:19 +00:00
This mode is very similar to production run of electron app. Electron app forks process with API on dynamically allocated port, works with compiled javascript files.
2020-04-13 18:53:44 +00:00
```sh
cd app
yarn
```
```sh
yarn
yarn build:app:local
yarn start:app:local
```
2020-03-13 21:42:09 +00:00
## Packages
2020-11-17 17:48:26 +00:00
Some dbgate packages can be used also without DbGate. You can find them on [NPM repository](https://www.npmjs.com/search?q=keywords:dbgate)
* [api](https://github.com/dbshell/dbgate/tree/master/packages/api) - backend, Javascript, ExpressJS [![NPM version](https://img.shields.io/npm/v/dbgate-api.svg)](https://www.npmjs.com/package/dbgate-api)
2020-11-16 19:18:49 +00:00
* [datalib](https://github.com/dbshell/dbgate/tree/master/packages/datalib) - TypeScript library for utility classes
* [app](https://github.com/dbshell/dbgate/tree/master/app) - application (JavaScript)
2020-11-17 17:48:26 +00:00
* [engines](https://github.com/dbshell/dbgate/tree/master/packages/engines) - drivers for database engine (mssql, mysql, postgres), analysing database structure, creating specific queries (JavaScript) [![NPM version](https://img.shields.io/npm/v/dbgate-engines.svg)](https://www.npmjs.com/package/dbgate-engines)
2020-11-16 19:18:49 +00:00
* [filterparser](https://github.com/dbshell/dbgate/tree/master/packages/filterparser) - TypeScript library for parsing data filter expressions using parsimmon
2020-11-17 17:48:26 +00:00
* [sqltree](https://github.com/dbshell/dbgate/tree/master/packages/sqltree) - JSON representation of SQL query, functions converting to SQL (TypeScript) [![NPM version](https://img.shields.io/npm/v/dbgate-sqltree.svg)](https://www.npmjs.com/package/dbgate-sqltree)
* [types](https://github.com/dbshell/dbgate/tree/master/packages/types) - common TypeScript definitions [![NPM version](https://img.shields.io/npm/v/dbgate-types.svg)](https://www.npmjs.com/package/dbgate-types)
2020-11-16 19:20:08 +00:00
* [web](https://github.com/dbshell/dbgate/tree/master/packages/web) - frontend in React (JavaScript)
2020-11-17 17:48:26 +00:00
* [tools](https://github.com/dbshell/dbgate/tree/master/packages/tools) - various tools [![NPM version](https://img.shields.io/npm/v/dbgate-tools.svg)](https://www.npmjs.com/package/dbgate-tools)