npgsqlrest

Description
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.
NpgsqlRest is an Automatic REST API for PostgreSQL Database as the .NET8 Middleware. See the GitHub Readme for more info.
NpgsqlRest Client Web App is a command line utility that runs as a configurable Kestrel web server that can:
- Create an Automatic REST API for the PostgreSQL Databases.
- Generate TypeScript Code and HTTP files for testing.
- Configure security for use the of either encrypted cookies or JWT Bearer tokens or both.
- Expose REST API endpoints for the PostgreSQL Databases as Login/Logout.
- Use external authentication providers such as Google, LinkedIn or GitHub.
- Server static content.
- Use and configure built-in Serilog structured logging.
- Configure Cross-origin resource sharing (CORS) access, SSL, Server Certificates and more, everything needed for modern Web development.
See the default configuration file with descriptions for more information.
Usage
$ npx npgsqlrest --help
Usage:
npgsqlrest Run with the default configuration files: appsettings.json (required) and appsettings.Development.json (optional).
npgsqlrest [files...] Run with the custom configuration files. All configuration files are required.
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.
npgsqlrest [file1 --optional file2...] Use --optional switch to mark the next configuration file as optional. The first file after the --optional switch is optional.
npgsqlrest -v, --version Show version information.
npgsqlrest -h, --help Show command line help.
Note: Values in the later file will override the values in the previous one.
Example: npgsqlrest appsettings.json appsettings.Development.json
Example: npgsqlrest appsettings.json -o appsettings.Development.json
Installation
Install npgsqlrest
using npm:
npm install npgsqlrest --save-dev
Changelog
1.1.1
- Move the download bin directory from share
/node_modules/.bin/
to package local /node_modules/npgsqlrest/.bin/
- Added copy default configuration command that, well, copies the default configuration
npx npgsqlrest-config-copy [optional dir]
1.1.0
New build versions:
Client Build 1.1.0.0
Npgsql 2.7.1.0
NpgsqlRest.HttpFiles 1.0.2.0
NpgsqlRest.TsClient 1.6.0.0
https://github.com/vb-consulting/NpgsqlRest/releases/tag/v2.7.1-client-v1.1.0