mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 22:36:01 +00:00
renamed package dbgate to dbgate-serve
This commit is contained in:
27
packages/serve/README.md
Normal file
27
packages/serve/README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
[](https://github.com/prettier/prettier)
|
||||
[](https://www.npmjs.com/package/dbgate)
|
||||
|
||||
# DbGate - database administration tool
|
||||
DbGate is fast and easy to use database administration tool for MySQL, PostgreSQL, SQL Server.
|
||||
|
||||
## Install using npm
|
||||
```sh
|
||||
npm install -g dbgate-servee
|
||||
```
|
||||
|
||||
After installing, you can run dbgate with command:
|
||||
```sh
|
||||
dbgate-serve
|
||||
```
|
||||
|
||||
Then open http://localhost:5000 in your browser
|
||||
|
||||
## Download electron app
|
||||
You can also download binary packages from https://dbgate.org . Or run from source code, as described on [github](https://github.com/dbgate/dbgate)
|
||||
|
||||
## Other dbgate packages
|
||||
You can use some functionality of dbgate from your JavaScript code. See [dbgate-api](https://npmjs.com/dbgate-api) package.
|
||||
|
||||
## Screenshot
|
||||
|
||||

|
||||
12
packages/serve/bin/dbgate-serve.js
Executable file
12
packages/serve/bin/dbgate-serve.js
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const path = require('path');
|
||||
require('dotenv').config();
|
||||
|
||||
global.API_PACKAGE = path.dirname(path.dirname(require.resolve('dbgate-api')));
|
||||
global.PLUGINS_DIR = path.dirname(global.API_PACKAGE);
|
||||
global.IS_NPM_DIST = true;
|
||||
|
||||
const dbgateApi = require('dbgate-api');
|
||||
|
||||
dbgateApi.getMainModule().start();
|
||||
32
packages/serve/package.json
Normal file
32
packages/serve/package.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "dbgate-serve",
|
||||
"version": "4.1.1",
|
||||
"homepage": "https://dbgate.org/",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dbgate/dbgate.git"
|
||||
},
|
||||
"description": "Opensource database administration tool - web interface",
|
||||
"author": "Jan Prochazka",
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"dbgate-serve": "./bin/dbgate-serve.js"
|
||||
},
|
||||
"keywords": [
|
||||
"sql",
|
||||
"dbgate",
|
||||
"web"
|
||||
],
|
||||
"dependencies": {
|
||||
"dbgate-api": "^4.1.1",
|
||||
"dbgate-plugin-csv": "^4.1.1",
|
||||
"dbgate-plugin-excel": "^4.1.1",
|
||||
"dbgate-plugin-mongo": "^4.1.1",
|
||||
"dbgate-plugin-mssql": "^4.1.1",
|
||||
"dbgate-plugin-mysql": "^4.1.1",
|
||||
"dbgate-plugin-postgres": "^4.1.1",
|
||||
"dbgate-plugin-xml": "^4.1.1",
|
||||
"dbgate-web": "^4.1.1",
|
||||
"dotenv": "^16.0.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user