npgsqlrest 0.0.7 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/postinstall.js +1 -1
- package/readme.md +53 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npgsqlrest",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Automatic REST API for PostgreSQL Databases Client Build",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"postinstall": "node postinstall.js",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"bugs": {
|
|
24
24
|
"url": "https://github.com/vb-consulting/NpgsqlRest/issues"
|
|
25
25
|
},
|
|
26
|
-
"homepage": "https://github.com/vb-consulting/NpgsqlRest
|
|
26
|
+
"homepage": "https://github.com/vb-consulting/NpgsqlRest/blob/master/npm/readme.md"
|
|
27
27
|
}
|
package/postinstall.js
CHANGED
|
@@ -4,7 +4,7 @@ const os = require("os");
|
|
|
4
4
|
const https = require("https");
|
|
5
5
|
|
|
6
6
|
const downloadDir = "../.bin/";
|
|
7
|
-
const downloadFrom = "https://github.com/vb-consulting/NpgsqlRest/releases/download/v2.7.0/";
|
|
7
|
+
const downloadFrom = "https://github.com/vb-consulting/NpgsqlRest/releases/download/v2.7.1-client-v1.1.0/";
|
|
8
8
|
|
|
9
9
|
function download(url, to, done) {
|
|
10
10
|
https.get(url, (response) => {
|
package/readme.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# npgsqlrest
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
## Description
|
|
10
|
+
|
|
11
|
+
The `npgsqlrest` is an NPM distribution of the self-contained ahead-of-time (AOT) compiled to native code executables of the [NpgsqlRest Client Web App](https://github.com/vb-consulting/NpgsqlRest/tree/master/NpgsqlRestClient).
|
|
12
|
+
|
|
13
|
+
NpgsqlRest is an Automatic REST API for PostgreSQL Database as the .NET8 Middleware. See the [GitHub Readme](https://github.com/vb-consulting/NpgsqlRest) for more info.
|
|
14
|
+
|
|
15
|
+
NpgsqlRest Client Web App is a command line utility that runs as a configurable Kestrel web server that can:
|
|
16
|
+
|
|
17
|
+
- Create an Automatic REST API for the PostgreSQL Databases.
|
|
18
|
+
- Generate TypeScript Code and HTTP files for testing.
|
|
19
|
+
- Configure security for use the of either encrypted cookies or JWT Bearer tokens or both.
|
|
20
|
+
- Expose REST API endpoints for the PostgreSQL Databases as Login/Logout.
|
|
21
|
+
- Use external authentication providers such as Google, LinkedIn or GitHub.
|
|
22
|
+
- Server static content.
|
|
23
|
+
- Use and configure built-in Serilog structured logging.
|
|
24
|
+
- Configure Cross-origin resource sharing (CORS) access, SSL, Server Certificates and more, everything needed for modern Web development.
|
|
25
|
+
|
|
26
|
+
See the [default configuration file](https://vb-consulting.github.io/npgsqlrest/config/) with descriptions for more information.
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
```console
|
|
31
|
+
$ npx npgsqlrest --help
|
|
32
|
+
Usage:
|
|
33
|
+
npgsqlrest Run with the default configuration files: appsettings.json (required) and appsettings.Development.json (optional).
|
|
34
|
+
npgsqlrest [files...] Run with the custom configuration files. All configuration files are required.
|
|
35
|
+
npgsqlrest [file1 -o file2...] Use the -o switch to mark the next configuration file as optional. The first file after the -o switch is optional.
|
|
36
|
+
npgsqlrest [file1 --optional file2...] Use --optional switch to mark the next configuration file as optional. The first file after the --optional switch is optional.
|
|
37
|
+
|
|
38
|
+
npgsqlrest -v, --version Show version information.
|
|
39
|
+
npgsqlrest -h, --help Show command line help.
|
|
40
|
+
|
|
41
|
+
Note: Values in the later file will override the values in the previous one.
|
|
42
|
+
|
|
43
|
+
Example: npgsqlrest appsettings.json appsettings.Development.json
|
|
44
|
+
Example: npgsqlrest appsettings.json -o appsettings.Development.json
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Installation
|
|
48
|
+
|
|
49
|
+
Install `npgsqlrest` using npm:
|
|
50
|
+
|
|
51
|
+
```console
|
|
52
|
+
npm install npgsqlrest --save-dev
|
|
53
|
+
```
|