qcobjects-admin-lib-db-sqlite3
Advanced tools
Comparing version 0.0.21 to 0.0.22
{ | ||
"name": "qcobjects-admin-lib-db-sqlite3", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "QCObjects Admin Lib to work with SQLite3", | ||
@@ -5,0 +5,0 @@ "main": "public/js/index.cjs", |
@@ -1,43 +0,34 @@ | ||
# QCObjects Handler Hello World | ||
# QCObjects Admin Lib Db SQLite3 | ||
# Install | ||
QCObjects Admin Lib for working with SQLite3 Database. | ||
## Instructions | ||
1. Install this dependency in your project using npm | ||
```shell | ||
npm i qcobjects-handler-hello-world | ||
npm i --save qcobjects-admin-lib-db-sqlite3 | ||
``` | ||
# Setup in your config.json | ||
2. In your config.json file, create the following settings | ||
```json | ||
"backend":{ | ||
"routes":[ | ||
{ | ||
"name":"Hello World!", | ||
"description":"Hello world Microservice!", | ||
"path":"^/hello-world", | ||
"microservice":"qcobjects-handler-hello-world", | ||
"headers": { | ||
"content-type": "text/html; charset=utf-8" | ||
}, | ||
"responseHeaders":{ | ||
}, | ||
"cors":{ | ||
"allow_origins":"*" | ||
} | ||
} | ||
] | ||
} | ||
```shell | ||
"backend":{ | ||
"db_engine":{ | ||
"name":"sqlite3", | ||
"databaseName":"admin.db" | ||
}, ... | ||
``` | ||
# Visit | ||
1. Test the integration | ||
Visit https://localhost:port/hello-world | ||
```shell | ||
npm test | ||
``` | ||
# Create your own microservice | ||
4. Start the QCObjects HTTP2 Server | ||
To make your own microservice, you can generate it with QCObjects CLI using this package as template: | ||
```shell | ||
qcobjects create --custom=qcobjects-handler-hello-world myown-handler-microservice | ||
qcobjects-server | ||
``` | ||
If you haven't installed QCObjects before, learn more about [Installing QCObjects here](https://docs.qcobjects.org/#installing) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
134448
35