qcobjectsnewapp 2.4.37 → 2.5.6-ts
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/.github/workflows/npmpublish.yml +49 -0
- package/.github/workflows/static.yml +7 -13
- package/CHANGELOG.md +48 -0
- package/CONFIG.md +53 -0
- package/DOCKER-COMPOSE-TUTORIAL.md +114 -0
- package/Dockerfile +4 -3
- package/LICENSE.txt +21 -56
- package/README.md +31 -1
- package/VERSION +1 -1
- package/config.json +3 -1
- package/config.yaml +58 -0
- package/docker-compose.yml +23 -0
- package/netlify.toml +1 -0
- package/package.json +24 -35
- package/public/404.html +51 -0
- package/public/_redirects +3 -0
- package/public/css/body-layout.css +2 -0
- package/public/css/body-layout.css.map +7 -0
- package/public/css/components/button.css +17 -0
- package/public/css/components/button.css.map +7 -0
- package/public/css/components/card.css +17 -0
- package/public/css/components/card.css.map +7 -0
- package/public/css/components/hero/hero-call-to-action.css +124 -0
- package/public/css/components/hero/hero-overlay.css +122 -0
- package/public/css/components/hero/hero-two-column-form.css +167 -0
- package/public/css/components/modal.css +17 -0
- package/public/css/components/modal.css.map +7 -0
- package/public/css/desktop/components/deploy-grid.css +3 -0
- package/public/css/desktop/components/github-grid.css +7 -0
- package/public/css/desktop/container.css +17 -0
- package/public/css/desktop/container.css.map +7 -0
- package/public/css/desktop/content.css +17 -0
- package/public/css/desktop/content.css.map +7 -0
- package/public/css/desktop/footer.css +1 -0
- package/public/css/desktop/footer.css.map +7 -0
- package/public/css/desktop/index.css +17 -0
- package/public/css/desktop/index.css.map +7 -0
- package/public/css/desktop/navbar.css +17 -0
- package/public/css/desktop/navbar.css.map +7 -0
- package/public/css/desktop/sidebar.css +1 -0
- package/public/css/desktop/sidebar.css.map +7 -0
- package/public/css/index.css +17 -0
- package/public/css/index.css.map +7 -0
- package/public/css/mobile/components/deploy-grid.css +8 -0
- package/public/css/mobile/components/github-grid.css +7 -0
- package/public/css/mobile/content.css +17 -0
- package/public/css/mobile/content.css.map +7 -0
- package/public/css/mobile/footer.css +1 -0
- package/public/css/mobile/footer.css.map +7 -0
- package/public/css/mobile/index.css +17 -0
- package/public/css/mobile/index.css.map +7 -0
- package/public/css/mobile/navbar.css +17 -0
- package/public/css/mobile/navbar.css.map +7 -0
- package/public/css/mobile/sidebar.css +1 -0
- package/public/css/mobile/sidebar.css.map +7 -0
- package/public/css/modern-base.css +17 -0
- package/public/css/modern-base.css.map +7 -0
- package/public/css/theme/basic/style.css +65 -0
- package/public/css/theme/cyan/style.css +66 -0
- package/public/css/theme/redlight/style.css +63 -0
- package/public/css/theme/xtra/style.css +1652 -0
- package/public/favicon.ico +0 -0
- package/public/humans.txt +14 -0
- package/public/img/Q_web copy.png +0 -0
- package/public/img/Q_web-white.png +0 -0
- package/public/img/Q_web.png +0 -0
- package/public/img/Q_web.svg +37 -0
- package/public/img/awsmplogo3.svg +106 -0
- package/public/img/icons/icon-128x128.png +0 -0
- package/public/img/icons/icon-144x144.png +0 -0
- package/public/img/icons/icon-152x152.png +0 -0
- package/public/img/icons/icon-192x192.png +0 -0
- package/public/img/icons/icon-384x384.png +0 -0
- package/public/img/icons/icon-512x512.png +0 -0
- package/public/img/icons/icon-72x72.png +0 -0
- package/public/img/icons/icon-96x96.png +0 -0
- package/public/img/logo-qcobjects-back-bg-white-icon.svg +64 -0
- package/public/img/logo-qcobjects-version.svg +4 -0
- package/public/img/logo-qcobjects-white-bg-back-icon.svg +73 -0
- package/public/img/logo-qcobjects-white-black-bg.svg +117 -0
- package/public/img/logo-qcobjects-white-powered-quickcorp.svg +176 -0
- package/public/img/logo-qcobjects-white.svg +1 -0
- package/public/img/logo.png +0 -0
- package/public/img/netlify-button.svg +1 -0
- package/public/img/octocat.svg +5 -0
- package/public/img/placeholder.svg +26 -0
- package/public/img/screenshots/screenshot1.png +0 -0
- package/public/img/screenshots/screenshot1.webp +0 -0
- package/public/img/screenshots/screenshot2.png +0 -0
- package/public/img/screenshots/screenshot2.webp +0 -0
- package/public/index-fallback.html +47 -0
- package/public/index.html +51 -0
- package/public/js/config.js +22 -0
- package/public/js/config.js.map +7 -0
- package/public/js/customWidgets.js +22 -0
- package/public/js/customWidgets.js.map +7 -0
- package/public/js/init.js +832 -0
- package/public/js/init.js.map +7 -0
- package/public/js/packages/com.qcobjects.installer.js +719 -0
- package/public/js/packages/com.qcobjects.installer.js.map +7 -0
- package/public/js/packages/com.qcobjects.services.github.js +22 -0
- package/public/js/packages/com.qcobjects.services.github.js.map +7 -0
- package/public/js/packages/com.qcobjects.services.newapp.js +22 -0
- package/public/js/packages/com.qcobjects.services.newapp.js.map +7 -0
- package/public/js/packages/org.quickcorp.custom.components.js +133 -0
- package/public/js/packages/org.quickcorp.custom.components.js.map +7 -0
- package/public/js/packages/org.quickcorp.custom.controllers.js +721 -0
- package/public/js/packages/org.quickcorp.custom.controllers.js.map +7 -0
- package/public/js/packages/org.quickcorp.custom.effects.js +22 -0
- package/public/js/packages/org.quickcorp.custom.effects.js.map +7 -0
- package/public/js/packages/org.quickcorp.custom.js +832 -0
- package/public/js/packages/org.quickcorp.custom.js.map +7 -0
- package/public/js/packages/org.quickcorp.custom.models.js +22 -0
- package/public/js/packages/org.quickcorp.custom.models.js.map +7 -0
- package/public/js/packages/org.quickcorp.custom.views.js +22 -0
- package/public/js/packages/org.quickcorp.custom.views.js.map +7 -0
- package/public/manifest.json +100 -0
- package/public/robots.txt +5 -0
- package/public/sw.js +256 -0
- package/public/templates/components/article1.tpl.html +6 -0
- package/public/templates/components/article2.tpl.html +6 -0
- package/public/templates/components/aws-button.tpl.html +18 -0
- package/public/templates/components/blank.tpl.html +0 -0
- package/public/templates/components/card.tpl.html +8 -0
- package/public/templates/components/codespaces-button.tpl.html +27 -0
- package/public/templates/components/contentblock.tpl.html +6 -0
- package/public/templates/components/footer.tpl.html +13 -0
- package/public/templates/components/footer2.tpl.html +1 -0
- package/public/templates/components/github-button.tpl.html +34 -0
- package/public/templates/components/github-card.tpl.html +7 -0
- package/public/templates/components/gitpod-button.tpl.html +56 -0
- package/public/templates/components/header.tpl.html +20 -0
- package/public/templates/components/hero/hero-call-to-action.tpl.html +11 -0
- package/public/templates/components/hero/hero-overlay.tpl.html +11 -0
- package/public/templates/components/hero/hero-two-column-form.tpl.html +21 -0
- package/public/templates/components/install-button.tpl.html +30 -0
- package/public/templates/components/layout-basic.tpl.html +80 -0
- package/public/templates/components/loading.tpl.html +12 -0
- package/public/templates/components/loadingfooter.tpl.html +1 -0
- package/public/templates/components/login-button.tpl.html +101 -0
- package/public/templates/components/login2.tpl.html +3 -0
- package/public/templates/components/loginform.tpl.html +7 -0
- package/public/templates/components/modal.tpl.html +13 -0
- package/public/templates/components/nav.tpl.html +31 -0
- package/public/templates/components/netlify-button.tpl.html +19 -0
- package/public/templates/components/octocat-icon.tpl.html +13 -0
- package/public/templates/components/pages/about-of.tpl.html +21 -0
- package/public/templates/components/pages/author.tpl.html +23 -0
- package/public/templates/components/pages/page1.tpl.html +2 -0
- package/public/templates/components/pages/page2.tpl.html +1 -0
- package/public/templates/components/pages/page3.tpl.html +1 -0
- package/public/templates/components/pages/qcobjects-forks-stars.tpl.html +5 -0
- package/public/templates/components/product.tpl.html +9 -0
- package/public/templates/components/profile.tpl.html +1 -0
- package/public/templates/components/section1.tpl.html +3 -0
- package/public/templates/components/section2.tpl.html +3 -0
- package/public/templates/components/shadowed-card.tpl.html +26 -0
- package/public/templates/components/signin-button.tpl.html +107 -0
- package/public/templates/components/signup-form.tpl.html +145 -0
- package/public/templates/components/signup.tpl.html +11 -0
- package/public/templates/components/signupbuttons.tpl.html +20 -0
- package/public/templates/components/signupform.tpl.html +4 -0
- package/public/templates/components/signuppage.tpl.html +12 -0
- package/public/templates/components/signupsuccessful.tpl.html +13 -0
- package/public/templates/components/signupsuccessfulfooter.tpl.html +3 -0
- package/public/templates/components/splashscreen.tpl.html +128 -0
- package/public/templates/components/topmenu.tpl.html +8 -0
- package/spec/testsSpec.js +19 -8
- package/src/css/components/button.css +2 -11
- package/src/css/components/card.css +11 -11
- package/src/css/components/hero/hero-call-to-action.css +2 -11
- package/src/css/components/hero/hero-overlay.css +2 -11
- package/src/css/components/hero/hero-two-column-form.css +2 -11
- package/src/css/components/modal.css +2 -11
- package/src/css/desktop/components/github-grid.css +1 -0
- package/src/css/desktop/container.css +2 -11
- package/src/css/desktop/content.css +2 -11
- package/src/css/desktop/index.css +2 -11
- package/src/css/desktop/navbar.css +2 -11
- package/src/css/index.css +31 -12
- package/src/css/mobile/components/github-grid.css +1 -0
- package/src/css/mobile/content.css +2 -11
- package/src/css/mobile/index.css +2 -11
- package/src/css/mobile/navbar.css +2 -11
- package/src/css/modern-base.css +2 -11
- package/src/css/theme/basic/style.css +2 -11
- package/src/css/theme/cyan/style.css +2 -11
- package/src/css/theme/redlight/style.css +2 -11
- package/src/js/init.d.ts +3 -12
- package/src/js/init.ts +3 -12
- package/src/sw.js +2 -11
- package/src/templates/components/footer.tpl.html +1 -0
- package/tsconfig.d.json +8 -2
- package/tsconfig.json +21 -5
- package/.eslintignore +0 -4
- package/.eslintrc.cjs +0 -6
- package/.github/workflows/npmpublish-beta.yml +0 -38
- package/.github/workflows/npmpublish-lts.yml +0 -38
- package/.github/workflows/npmpublish-main.yml +0 -38
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Node.js Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*.*.*'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v6
|
|
13
|
+
with:
|
|
14
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
15
|
+
ref: ${{ github.ref }}
|
|
16
|
+
- uses: actions/setup-node@v6
|
|
17
|
+
with:
|
|
18
|
+
node-version: 22
|
|
19
|
+
- run: npm i --legacy-peer-deps
|
|
20
|
+
- run: npm run build
|
|
21
|
+
- run: npm test
|
|
22
|
+
|
|
23
|
+
publish-npm:
|
|
24
|
+
needs: build
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
permissions:
|
|
27
|
+
contents: read
|
|
28
|
+
id-token: write
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v6
|
|
31
|
+
with:
|
|
32
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
33
|
+
ref: ${{ github.ref }}
|
|
34
|
+
- uses: actions/setup-node@v6
|
|
35
|
+
with:
|
|
36
|
+
node-version: 22
|
|
37
|
+
- name: Upgrade npm for OIDC support (requires >=11.5.1)
|
|
38
|
+
run: npm install -g npm@latest
|
|
39
|
+
- run: npm i --legacy-peer-deps
|
|
40
|
+
- run: npm run build
|
|
41
|
+
- name: Publish to npm
|
|
42
|
+
run: |
|
|
43
|
+
if [[ "${{ github.ref }}" == *-beta ]]; then
|
|
44
|
+
npm publish --tag beta
|
|
45
|
+
elif [[ "${{ github.ref }}" == *-lts ]]; then
|
|
46
|
+
npm publish --tag lts
|
|
47
|
+
else
|
|
48
|
+
npm publish --tag latest
|
|
49
|
+
fi
|
|
@@ -31,32 +31,26 @@ jobs:
|
|
|
31
31
|
runs-on: ubuntu-latest
|
|
32
32
|
steps:
|
|
33
33
|
- name: Checkout
|
|
34
|
-
uses: actions/checkout@
|
|
34
|
+
uses: actions/checkout@v4
|
|
35
35
|
- name: Setup Pages
|
|
36
|
-
uses: actions/configure-pages@
|
|
36
|
+
uses: actions/configure-pages@v5
|
|
37
37
|
|
|
38
38
|
- name: Set up Node.js version
|
|
39
|
-
uses: actions/setup-node@
|
|
39
|
+
uses: actions/setup-node@v4
|
|
40
40
|
with:
|
|
41
|
-
node-version: '
|
|
41
|
+
node-version: '22.x'
|
|
42
42
|
|
|
43
43
|
- name: npm install, build, and test
|
|
44
44
|
run: |
|
|
45
|
-
npm install
|
|
45
|
+
npm install --legacy-peer-deps
|
|
46
46
|
npm run build --if-present
|
|
47
47
|
npm run test --if-present
|
|
48
48
|
|
|
49
|
-
- name: Upload artifact for deployment job
|
|
50
|
-
uses: actions/upload-pages-artifact@v1
|
|
51
|
-
with:
|
|
52
|
-
name: node-app
|
|
53
|
-
path: ./public
|
|
54
|
-
|
|
55
49
|
- name: Upload artifact
|
|
56
|
-
uses: actions/upload-pages-artifact@
|
|
50
|
+
uses: actions/upload-pages-artifact@v3
|
|
57
51
|
with:
|
|
58
52
|
# Upload entire repository
|
|
59
53
|
path: './public'
|
|
60
54
|
- name: Deploy to GitHub Pages
|
|
61
55
|
id: deployment
|
|
62
|
-
uses: actions/deploy-pages@
|
|
56
|
+
uses: actions/deploy-pages@v4
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## v2.5.6-ts
|
|
4
|
+
|
|
5
|
+
- fix: repository.url QuickCorp -> QCObjects (+type file -> git). Sigstore provenance (OIDC) hard-requires package.json repo to match the true repo QCObjects/qcobjects-new-app (E422 on v2.5.5-ts: attestation vs QuickCorp URL). URL set to exactly https://github.com/QCObjects/qcobjects-new-app.
|
|
6
|
+
- version: 2.5.5-ts -> 2.5.6-ts (v2.5.5-ts tag points at the pre-URL-fix main; tags immutable -> new number)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## v2.5.5-ts
|
|
10
|
+
|
|
11
|
+
- fix: npmpublish workflow now passes explicit --tag latest on the default branch (modern npm refuses bare npm publish for prerelease versions: You must specify a tag using --tag when publishing a prerelease version — killed the v2.5.4-ts publish after build went green; the npm@latest upgrade for OIDC is what enforces it).
|
|
12
|
+
- version: 2.5.4-ts -> 2.5.5-ts (v2.5.4-ts tag points at the pre-workflow-fix main; tags immutable -> new number)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## v2.5.4-ts
|
|
16
|
+
|
|
17
|
+
- fix: neutralize inherited tsconfig paths wildcard ("*": ["src/*"] from qcobjects/tsconfig.json hijacked bare imports into node_modules/qcobjects/src/<lowercase> — hard Cannot-read-file error on case-sensitive CI runners; invisible on case-insensitive dev mounts). Template now sets baseUrl+explicit paths (keeps case-correct types mapping). Verified in case-sensitive clean-room sim: rc=1+exact CI error before -> rc=0+zero warnings after; iife bundle browser-safe (0 eager node:/types imports).
|
|
18
|
+
- version: 2.5.3-ts -> 2.5.4-ts (v2.5.3-ts tag points at the unpublishable pre-fix commit; tags immutable -> new number)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## v2.5.3-ts
|
|
22
|
+
|
|
23
|
+
- release: template 2.5.x npm publish UNBLOCKED (PR 12+13: browser-safe publish:esbuild via iife + node/types externals — 0 eager node:/*/types top-level imports in the browser bundle; publish:web/webassembly/static gates green); version bump 2.5.2-ts -> 2.5.3-ts
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## v2.5.3-ts
|
|
27
|
+
|
|
28
|
+
- release: template publish unblocked (PR 12+13: browser-safe publish:esbuild via iife + node/'types' externals; 2.5.x template). npm version bump 2.5.2-ts -> 2.5.3-ts
|
|
29
|
+
- fix: publish:web gate — npm run build passes end-to-end including publish:esbuild (iife browser-safe bundle: 0 eager node:/*types top-level imports; node ready-state + types stay lazy in browser)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## v2.5.2-ts
|
|
33
|
+
|
|
34
|
+
- publish:static now sweeps macOS AppleDouble droppings cross-platform (clean:appledouble, pre-commit + postpublish:static)
|
|
35
|
+
- Drop deprecated qcobjects-command-publish-static (built-in in cli publish:static)
|
|
36
|
+
- Bump qcobjects >=2.5.142 / qcobjects-sdk >=2.5.105 to satisfy qcobjects-cli@2.6.1 peers
|
|
37
|
+
- Override @types/qcobjects(-sdk) to HTTPS tarballs; CI npm install --legacy-peer-deps
|
|
38
|
+
- Remove committed AppleDouble droppings from tree
|
|
39
|
+
|
|
40
|
+
## v2.5.1-ts
|
|
41
|
+
|
|
42
|
+
- CI fixes: registry override + HTTPS types pins (unblocks npm install in publish)
|
|
43
|
+
|
|
44
|
+
## v2.5.0-ts
|
|
45
|
+
|
|
46
|
+
- License migration LGPLv3 → MIT (LICENSE.txt, package.json, source headers)
|
|
47
|
+
- Build scripts delegate to CLI (`build:ts`/`build:ts-types` via `qcobjects build:typescript`; new `build:esbuild`/`build:esb` passthroughs)
|
|
48
|
+
- See product-specs 09-license and 15-unified-vision-v3 (Phase 1)
|
package/CONFIG.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# CONFIG.md
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
This document provides detailed information about the configuration fields used in the `config.yaml` file.
|
|
5
|
+
|
|
6
|
+
## Configuration Fields
|
|
7
|
+
|
|
8
|
+
### General Settings
|
|
9
|
+
- **devmode**: Specifies the development mode level. Possible values: `info`, `debug`, `warn`, `error`.
|
|
10
|
+
- **autodiscover**: Enables or disables the autodiscovery of components. Possible values: `true`, `false`.
|
|
11
|
+
- **autodiscover_commands**: Enables or disables the autodiscovery of commands. Possible values: `true`, `false`.
|
|
12
|
+
- **autodiscover_handlers**: Enables or disables the autodiscovery of handlers. Possible values: `true`, `false`.
|
|
13
|
+
- **documentRoot**: Sets the root directory for serving documents. Example: `"$config(projectPath)public/"`.
|
|
14
|
+
- **documentRootFileIndex**: Specifies the default file to serve when accessing the document root. Example: `index.html`.
|
|
15
|
+
- **cacheControl**: Defines the cache control policy. Example: `max-age=31536000`.
|
|
16
|
+
- **relativeImportPath**: Sets the relative path for importing JavaScript packages. Example: `js/packages/`.
|
|
17
|
+
- **serverPortHTTP**: Specifies the port for the HTTP server. Example: `'8080'`.
|
|
18
|
+
- **serverPortHTTPS**: Specifies the port for the HTTPS server. Example: `'8443'`.
|
|
19
|
+
- **useLocalSDK**: Enables or disables the use of the local SDK. Possible values: `true`, `false`.
|
|
20
|
+
- **useLegacyHTTP**: Enables or disables the use of legacy HTTP. Possible values: `true`, `false`.
|
|
21
|
+
- **private-key-pem**: Path to the private key PEM file. Example: `"$config(domain)-privkey.pem"`.
|
|
22
|
+
- **private-cert-pem**: Path to the private certificate PEM file. Example: `"$config(domain)-cert.pem"`.
|
|
23
|
+
- **enableShellCommands**: Enables or disables shell commands. Possible values: `true`, `false`.
|
|
24
|
+
|
|
25
|
+
### Backend Configuration
|
|
26
|
+
- **backend**: Contains backend-specific settings.
|
|
27
|
+
- **db_engine**: Database engine configuration.
|
|
28
|
+
- **name**: Name of the database engine. Example: `"$ENV(ENGINE_NAME)"`.
|
|
29
|
+
- **databaseName**: Name of the database. Example: `"$ENV(DATABASE_NAME)"`.
|
|
30
|
+
- **auth**: Authentication settings.
|
|
31
|
+
- **enabled**: Enables or disables authentication. Possible values: `true`, `false`.
|
|
32
|
+
- **defaultUser**: Default username for authentication. Example: `"$ENV(DEFAULT_USER)"`.
|
|
33
|
+
- **defaultPasswd**: Default password for authentication. Example: `"$ENV(DEFAULT_PASSWORD)"`.
|
|
34
|
+
- **microsoftapikey**: API key for Microsoft services. Example: `"$ENV(MICROSOFT_API_KEY)"`.
|
|
35
|
+
- **googleapikey**: API key for Google services. Example: `"$ENV(GOOGLE_API_KEY)"`.
|
|
36
|
+
- **routes**: List of route configurations.
|
|
37
|
+
- **name**: Name of the route.
|
|
38
|
+
- **description**: Description of the route.
|
|
39
|
+
- **path**: Path pattern for the route.
|
|
40
|
+
- **microservice**: Microservice handling the route.
|
|
41
|
+
- **redirect_to**: Redirection target for the route.
|
|
42
|
+
- **responseHeaders**: Headers to include in the response.
|
|
43
|
+
- **cors**: CORS settings for the route.
|
|
44
|
+
- **allow_origins**: Allowed origins for CORS. Example: `"*"`.
|
|
45
|
+
|
|
46
|
+
### Package Configuration
|
|
47
|
+
- **package**: Contains package-specific settings.
|
|
48
|
+
- **source**: Source directories for the package.
|
|
49
|
+
- **backend**: Source directory for backend code. Example: `backend`.
|
|
50
|
+
- **frontend**: Source directory for frontend code. Example: `src`.
|
|
51
|
+
- **build**: Build directory. Example: `build`.
|
|
52
|
+
- **dist**: Distribution directory. Example: `dist`.
|
|
53
|
+
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
### Instructions to Use Docker Compose with QCObjects Docker Image
|
|
2
|
+
|
|
3
|
+
Based on the provided `docker-compose` file, here are the steps to use Docker Compose to create and build your own Docker image `qcobjects_newapp`:
|
|
4
|
+
|
|
5
|
+
1. **Create a Dockerfile:**
|
|
6
|
+
Ensure you have a `Dockerfile` in your project directory with the following content:
|
|
7
|
+
|
|
8
|
+
```dockerfile
|
|
9
|
+
FROM qcobjects/qcobjects:latest
|
|
10
|
+
|
|
11
|
+
USER root
|
|
12
|
+
|
|
13
|
+
ENV XDG_RUNTIME_DIR $(id -u)
|
|
14
|
+
ENV container docker
|
|
15
|
+
ENV LC_ALL C
|
|
16
|
+
ENV DEBIAN_FRONTEND noninteractive
|
|
17
|
+
|
|
18
|
+
LABEL MAINTAINER "Jean Machuca <jean@qcobjects.com>"
|
|
19
|
+
LABEL Author "Jean Machuca <jean@qcobjects.com>"
|
|
20
|
+
LABEL org.opencontainers.image.authors="Jean Machuca <jean@qcobjects.com>"
|
|
21
|
+
ENV container docker
|
|
22
|
+
|
|
23
|
+
RUN npm i -g qcobjects qcobjects-sdk qcobjects-cli
|
|
24
|
+
|
|
25
|
+
# Configure the internal user permissions
|
|
26
|
+
RUN mkdir -p /home/qcobjects/app && chown -R qcobjects:qcobjects /home/qcobjects/app
|
|
27
|
+
|
|
28
|
+
# Setting the work directory
|
|
29
|
+
WORKDIR /home/qcobjects/app
|
|
30
|
+
ENV DOCUMENT_ROOT /home/qcobjects/app/
|
|
31
|
+
ENV DATA_PATH $DOCUMENT_ROOT/data/
|
|
32
|
+
COPY package*.json ./
|
|
33
|
+
|
|
34
|
+
# Run the initial install init scripts for jasmine and cache verify
|
|
35
|
+
# RUN jasmine init
|
|
36
|
+
RUN npm cache verify
|
|
37
|
+
RUN npm i
|
|
38
|
+
|
|
39
|
+
# Bundle app source
|
|
40
|
+
COPY --chown=qcobjects:qcobjects . .
|
|
41
|
+
|
|
42
|
+
USER qcobjects
|
|
43
|
+
|
|
44
|
+
EXPOSE 8080:8080
|
|
45
|
+
EXPOSE 8443:8443
|
|
46
|
+
|
|
47
|
+
CMD [ "npm", "start" ]
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
2. **Create a `docker-compose.yml` File:**
|
|
51
|
+
Create a `docker-compose.yml` file in your project directory with the following content:
|
|
52
|
+
|
|
53
|
+
```yaml
|
|
54
|
+
version: '3'
|
|
55
|
+
services:
|
|
56
|
+
qcobjects:
|
|
57
|
+
image: qcobjects_newapp:latest
|
|
58
|
+
hostname: qcobjects_newapp
|
|
59
|
+
command: ["npm", "run", "start"]
|
|
60
|
+
privileged: true
|
|
61
|
+
build:
|
|
62
|
+
context: ./
|
|
63
|
+
dockerfile: Dockerfile
|
|
64
|
+
volumes:
|
|
65
|
+
- ./letsencrypt:/etc/letsencrypt/live/newapp.qcobjects.dev
|
|
66
|
+
- ./data:/home/qcobjects/app/data
|
|
67
|
+
expose:
|
|
68
|
+
- 8080:8080
|
|
69
|
+
- 8443:8443
|
|
70
|
+
- 10300:10300
|
|
71
|
+
ports:
|
|
72
|
+
- 8080:8080
|
|
73
|
+
- 8443:8443
|
|
74
|
+
- 10300:10300
|
|
75
|
+
env_file:
|
|
76
|
+
- ./.env
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
3. **Environment Variables:**
|
|
80
|
+
Create a `.env` file in your project directory to define environment variables. This file might include variables such as:
|
|
81
|
+
|
|
82
|
+
```env
|
|
83
|
+
NODE_ENV=production
|
|
84
|
+
PORT=8080
|
|
85
|
+
SSL_PORT=8443
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
4. **Build and Run the Docker Compose Setup:**
|
|
89
|
+
Open a terminal in your project directory and run the following commands:
|
|
90
|
+
|
|
91
|
+
```sh
|
|
92
|
+
# Build the Docker image
|
|
93
|
+
docker-compose build
|
|
94
|
+
|
|
95
|
+
# Start the services
|
|
96
|
+
docker-compose up
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Explanation of Environment Variables and Settings:
|
|
100
|
+
|
|
101
|
+
- **`NODE_ENV`**: Specifies the environment in which the application is running (e.g., `development`, `production`).
|
|
102
|
+
- **`PORT`**: The port on which the application will run (default is `8080`).
|
|
103
|
+
- **`SSL_PORT`**: The port for SSL connections (default is `8443`).
|
|
104
|
+
|
|
105
|
+
### Volumes:
|
|
106
|
+
- **`./letsencrypt:/etc/letsencrypt/live/newapp.qcobjects.dev`**: Maps the local `letsencrypt` directory to the container's directory for SSL certificates.
|
|
107
|
+
- **`./data:/home/qcobjects/app/data`**: Maps the local `data` directory to the container's data directory.
|
|
108
|
+
|
|
109
|
+
### Ports:
|
|
110
|
+
- **`8080:8080`**: Maps port `8080` on the host to port `8080` in the container.
|
|
111
|
+
- **`8443:8443`**: Maps port `8443` on the host to port `8443` in the container.
|
|
112
|
+
- **`10300:10300`**: Maps port `10300` on the host to port `10300` in the container.
|
|
113
|
+
|
|
114
|
+
These steps will help you set up and run your QCObjects application using Docker Compose, ensuring a consistent and efficient development environment.
|
package/Dockerfile
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
FROM
|
|
1
|
+
FROM qcobjects/qcobjects:latest
|
|
2
|
+
|
|
2
3
|
###
|
|
3
4
|
# QCObjects Framework
|
|
4
5
|
# ________________
|
|
@@ -55,9 +56,9 @@ RUN npm i
|
|
|
55
56
|
# Bundle app source
|
|
56
57
|
COPY --chown=qcobjects:qcobjects . .
|
|
57
58
|
|
|
58
|
-
|
|
59
|
+
RUN apk add --no-cache openssl
|
|
59
60
|
|
|
61
|
+
USER qcobjects
|
|
60
62
|
EXPOSE 8080:8080
|
|
61
63
|
EXPOSE 8443:8443
|
|
62
|
-
|
|
63
64
|
CMD [ "npm", "start" ]
|
package/LICENSE.txt
CHANGED
|
@@ -1,56 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
1. Exception to Section 3 of the GNU GPL.
|
|
24
|
-
You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.
|
|
25
|
-
|
|
26
|
-
2. Conveying Modified Versions.
|
|
27
|
-
If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:
|
|
28
|
-
|
|
29
|
-
a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or
|
|
30
|
-
b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.
|
|
31
|
-
3. Object Code Incorporating Material from Library Header Files.
|
|
32
|
-
The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:
|
|
33
|
-
|
|
34
|
-
a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.
|
|
35
|
-
b) Accompany the object code with a copy of the GNU GPL and this license document.
|
|
36
|
-
4. Combined Works.
|
|
37
|
-
You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:
|
|
38
|
-
|
|
39
|
-
a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.
|
|
40
|
-
b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
|
|
41
|
-
c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.
|
|
42
|
-
d) Do one of the following:
|
|
43
|
-
0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.
|
|
44
|
-
1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.
|
|
45
|
-
e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)
|
|
46
|
-
5. Combined Libraries.
|
|
47
|
-
You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:
|
|
48
|
-
|
|
49
|
-
a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.
|
|
50
|
-
b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
|
|
51
|
-
6. Revised Versions of the GNU Lesser General Public License.
|
|
52
|
-
The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
|
53
|
-
|
|
54
|
-
Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.
|
|
55
|
-
|
|
56
|
-
If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Jean Machuca,<correojean@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
> **Official repository.** This is the maintained QCObjects app template.
|
|
2
|
+
> Normative specifications live in
|
|
3
|
+
> [QCObjects/product-specs](https://github.com/QCObjects/product-specs)
|
|
4
|
+
> ([docs](https://qcobjects.github.io/product-specs/)).
|
|
5
|
+
>
|
|
6
|
+
> # QCObjects New App
|
|
2
7
|
|
|
3
8
|
This is a demo of a QCObjects based front-end Progressive Web App
|
|
4
9
|
|
|
@@ -118,6 +123,20 @@ The "coverage" script generates a code coverage report using the "nyc" library.
|
|
|
118
123
|
npm run coverage
|
|
119
124
|
```
|
|
120
125
|
|
|
126
|
+
# Setup ENV Variables
|
|
127
|
+
|
|
128
|
+
```sh
|
|
129
|
+
# Env file .env
|
|
130
|
+
export ENGINE_NAME=sqlite3
|
|
131
|
+
export DATABASE_NAME=admin.db
|
|
132
|
+
# Example: admin
|
|
133
|
+
export DEFAULT_USER=admin
|
|
134
|
+
# Example: admin123
|
|
135
|
+
export DEFAULT_PASSWORD=admin123
|
|
136
|
+
export MICROSOFT_API_KEY=<Get the key from Azure Platform>
|
|
137
|
+
export GOOGLE_API_KEY=<Get the key from GCP>
|
|
138
|
+
```
|
|
139
|
+
|
|
121
140
|
# Run start
|
|
122
141
|
|
|
123
142
|
The "start" script runs the "createcert" and "serve" scripts. This is useful for quickly launching the app and getting started with development.
|
|
@@ -259,3 +278,14 @@ docker run -p 8080:8080 -p 8443:8443 --name qcobjects-newapp -d qcobjects/qcobje
|
|
|
259
278
|
```
|
|
260
279
|
|
|
261
280
|
Then go to [https://127.0.0.1:8443/](https://127.0.0.1:8443/)
|
|
281
|
+
|
|
282
|
+
# Configuration Instructions
|
|
283
|
+
|
|
284
|
+
To properly configure the application, please refer to the [`CONFIG.md`](CONFIG.md) file for detailed information on each configuration field. Follow these steps:
|
|
285
|
+
|
|
286
|
+
1. **Open the configuration file**: The main configuration file is `config.json`. QCObjects will prioritize `config.json` if it is present. If `config.json` is not available, it will look for `config.yaml` or `config.yml`. If both JSON and YAML files are present, the YAML file will be considered, and the other files will be dismissed.
|
|
287
|
+
2. **Refer to `CONFIG.md`**: For a detailed explanation of each field in the configuration file, consult the [`CONFIG.md`](CONFIG.md) file. This document provides descriptions, possible values, and examples for each configuration option.
|
|
288
|
+
3. **Update the settings**: Modify the fields in the configuration file as per your requirements, using the guidance provided in [`CONFIG.md`](CONFIG.md).
|
|
289
|
+
4. **Save your changes**: Ensure that all changes are saved before running the application.
|
|
290
|
+
|
|
291
|
+
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.5.6-ts
|
package/config.json
CHANGED
package/config.yaml
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
devmode: info
|
|
3
|
+
autodiscover: true
|
|
4
|
+
autodiscover_commands: true
|
|
5
|
+
autodiscover_handlers: true
|
|
6
|
+
documentRoot: "$config(projectPath)public/"
|
|
7
|
+
documentRootFileIndex: index.html
|
|
8
|
+
cacheControl: max-age=31536000
|
|
9
|
+
relativeImportPath: js/packages/
|
|
10
|
+
serverPortHTTP: '8080'
|
|
11
|
+
serverPortHTTPS: '8443'
|
|
12
|
+
useLocalSDK: true
|
|
13
|
+
useLegacyHTTP: false
|
|
14
|
+
private-key-pem: "$config(domain)-privkey.pem"
|
|
15
|
+
private-cert-pem: "$config(domain)-cert.pem"
|
|
16
|
+
enableShellCommands: true
|
|
17
|
+
backend:
|
|
18
|
+
db_engine:
|
|
19
|
+
name: "$ENV(ENGINE_NAME)"
|
|
20
|
+
databaseName: "$ENV(DATABASE_NAME)"
|
|
21
|
+
auth:
|
|
22
|
+
enabled: true
|
|
23
|
+
defaultUser: "$ENV(DEFAULT_USER)"
|
|
24
|
+
defaultPasswd: "$ENV(DEFAULT_PASSWORD)"
|
|
25
|
+
microsoftapikey: "$ENV(MICROSOFT_API_KEY)"
|
|
26
|
+
googleapikey: "$ENV(GOOGLE_API_KEY)"
|
|
27
|
+
routes:
|
|
28
|
+
- name: QCObjects-SDK.js for demo folder
|
|
29
|
+
description: Redirection of QCObjects SDK
|
|
30
|
+
path: "^/demo-tests/QCObjects-SDK.js$"
|
|
31
|
+
microservice: com.qcobjects.backend.microservice.static
|
|
32
|
+
redirect_to: "./node_modules/qcobjects-sdk/QCObjects-SDK.js"
|
|
33
|
+
responseHeaders: {}
|
|
34
|
+
cors:
|
|
35
|
+
allow_origins: "*"
|
|
36
|
+
- name: QCObjects-SDK Components for demo folder
|
|
37
|
+
description: Redirection of QCObjects SDK
|
|
38
|
+
path: "^/demo-tests/qcobjects-sdk/(.*)$"
|
|
39
|
+
microservice: com.qcobjects.backend.microservice.static
|
|
40
|
+
redirect_to: "./node_modules/qcobjects-sdk/$1"
|
|
41
|
+
responseHeaders: {}
|
|
42
|
+
cors:
|
|
43
|
+
allow_origins: "*"
|
|
44
|
+
- name: Hello World!
|
|
45
|
+
description: Hello world Microservice!
|
|
46
|
+
path: "^/hello-world"
|
|
47
|
+
microservice: qcobjects-handler-hello-world
|
|
48
|
+
headers:
|
|
49
|
+
content-type: text/html; charset=utf-8
|
|
50
|
+
responseHeaders: {}
|
|
51
|
+
cors:
|
|
52
|
+
allow_origins: "*"
|
|
53
|
+
package:
|
|
54
|
+
source:
|
|
55
|
+
backend: backend
|
|
56
|
+
frontend: src
|
|
57
|
+
build: build
|
|
58
|
+
dist: dist
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
version: '3'
|
|
2
|
+
services:
|
|
3
|
+
qcobjects:
|
|
4
|
+
image: qcobjects_newapp:latest
|
|
5
|
+
hostname: qcobjects_newapp
|
|
6
|
+
command: ["npm","run", "start"]
|
|
7
|
+
privileged: true
|
|
8
|
+
build:
|
|
9
|
+
context: ./
|
|
10
|
+
dockerfile: Dockerfile
|
|
11
|
+
volumes:
|
|
12
|
+
- ./letsencrypt:/etc/letsencrypt/live/newapp.qcobjects.dev
|
|
13
|
+
- ./data:/home/qcobjects/app/data
|
|
14
|
+
expose:
|
|
15
|
+
- 8080:8080
|
|
16
|
+
- 8443:8443
|
|
17
|
+
- 10300:10300
|
|
18
|
+
ports:
|
|
19
|
+
- 8080:8080
|
|
20
|
+
- 8443:8443
|
|
21
|
+
- 10300:10300
|
|
22
|
+
env_file:
|
|
23
|
+
- ./.env
|
package/netlify.toml
CHANGED