renamed package dbgate to dbgate-serve

This commit is contained in:
Jan Prochazka
2022-03-24 09:55:39 +01:00
parent 45277e34c9
commit e2308f501b
6 changed files with 68 additions and 44 deletions

27
packages/serve/README.md Normal file
View File

@@ -0,0 +1,27 @@
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![NPM version](https://img.shields.io/npm/v/dbgate.svg)](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
![Screenshot](https://raw.githubusercontent.com/dbgate/dbgate/master/screenshot.png)

View 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();

View 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"
}
}