@genesislcap/blank-app-seed 1.5.2
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/.genx/.genxrc.js +9 -0
- package/.genx/configure.js +15 -0
- package/.genx/details.js +23 -0
- package/.genx/package.json +48 -0
- package/.genx/prompts/api.js +48 -0
- package/.genx/prompts/server.js +28 -0
- package/.genx/prompts/validators.js +10 -0
- package/.genx/prompts.js +22 -0
- package/.genx/scripts/health-check.sh +23 -0
- package/.genx/scripts/init-gradle.sh +21 -0
- package/.genx/scripts/update-versions.js +36 -0
- package/.genx/tests/fixtures/testapp/client/src/routes/home/home.template.ts +6 -0
- package/.genx/tests/fixtures/testapp/docker-compose.yml +20 -0
- package/.genx/tests/fixtures/testapp/server/jvm/testapp-config/src/main/resources/cfg/testapp-fields-dictionary.kts +20 -0
- package/.genx/tests/fixtures/testapp/server/jvm/testapp-config/src/main/resources/cfg/testapp-processes.xml +36 -0
- package/.genx/tests/fixtures/testapp/server/jvm/testapp-config/src/main/resources/cfg/testapp-service-definitions.xml +16 -0
- package/.genx/tests/fixtures/testapp/server/jvm/testapp-config/src/main/resources/cfg/testapp-tables-dictionary.kts +26 -0
- package/.genx/tests/fixtures/testapp/server/jvm/testapp-script-config/src/main/resources/scripts/testapp-dataserver.kts +13 -0
- package/.genx/tests/fixtures/testapp/server/jvm/testapp-script-config/src/main/resources/scripts/testapp-eventhandler.kts +21 -0
- package/.genx/versions.json +5 -0
- package/.vscode/settings.json +1 -0
- package/CHANGELOG.md +42 -0
- package/LICENSE +54 -0
- package/README.md +67 -0
- package/build.gradle.kts +15 -0
- package/client/.prettierignore +14 -0
- package/client/Dockerfile +12 -0
- package/client/README.md +88 -0
- package/client/build.gradle.kts +100 -0
- package/client/docs/images/lsp_jetbrains_one.png +0 -0
- package/client/docs/images/lsp_jetbrains_two.png +0 -0
- package/client/docs/images/lsp_vscode_one.png +0 -0
- package/client/docs/images/lsp_vscode_two.png +0 -0
- package/client/index.html +24 -0
- package/client/package.json +106 -0
- package/client/playwright.config.ts +1 -0
- package/client/public/favicon.ico +0 -0
- package/client/public/initSSO.js +49 -0
- package/client/settings.gradle.kts +1 -0
- package/client/src/components/components.ts +57 -0
- package/client/src/components/index.ts +1 -0
- package/client/src/index.federated.ts +1 -0
- package/client/src/index.ts +1 -0
- package/client/src/layouts/default.ts +135 -0
- package/client/src/layouts/index.ts +1 -0
- package/client/src/main/index.ts +2 -0
- package/client/src/main/main.css +17 -0
- package/client/src/main/main.styles.ts +21 -0
- package/client/src/main/main.template.ts +21 -0
- package/client/src/main/main.ts +95 -0
- package/client/src/routes/config.ts +142 -0
- package/client/src/routes/home/home.styles.ts +7 -0
- package/client/src/routes/home/home.template.ts +6 -0
- package/client/src/routes/home/home.ts +14 -0
- package/client/src/routes/index.ts +1 -0
- package/client/src/routes/not-found/not-found.styles.ts +11 -0
- package/client/src/routes/not-found/not-found.template.ts +6 -0
- package/client/src/routes/not-found/not-found.ts +16 -0
- package/client/src/styles/design-tokens.json +56 -0
- package/client/src/styles/index.ts +2 -0
- package/client/src/styles/styles.ts +30 -0
- package/client/src/styles/typography.ts +25 -0
- package/client/src/types.ts +5 -0
- package/client/src/utils/index.ts +1 -0
- package/client/src/utils/logger.ts +3 -0
- package/client/test/README.md +3 -0
- package/client/test/e2e/fixture.ts +25 -0
- package/client/test/e2e/flows/001-protected.e2e.ts +6 -0
- package/client/test/e2e/index.ts +2 -0
- package/client/test/e2e/pages/index.ts +1 -0
- package/client/test/e2e/pages/protected.ts +16 -0
- package/docker-compose.yml +42 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/gradle.properties +3 -0
- package/gradlew +249 -0
- package/gradlew.bat +92 -0
- package/package.json +23 -0
- package/server/jvm/README.md +27 -0
- package/server/jvm/build.gradle.kts +100 -0
- package/server/jvm/docker-scripts/configureDB.sh +12 -0
- package/server/jvm/docker-scripts/docker-entrypoint.sh +7 -0
- package/server/jvm/docker-scripts/genesisInstall.sh +5 -0
- package/server/jvm/docker-scripts/remap.sh +23 -0
- package/server/jvm/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/server/jvm/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/server/jvm/gradle.properties +10 -0
- package/server/jvm/gradlew +249 -0
- package/server/jvm/gradlew.bat +92 -0
- package/server/jvm/settings.gradle.kts +60 -0
- package/server/jvm/{{appName}}-config/build.gradle.kts +8 -0
- package/server/jvm/{{appName}}-config/src/main/kotlin/donotdelete.txt +1 -0
- package/server/jvm/{{appName}}-config/src/main/resources/cfg/{{appName}}-fields-dictionary.kts +14 -0
- package/server/jvm/{{appName}}-config/src/main/resources/cfg/{{appName}}-processes.xml +15 -0
- package/server/jvm/{{appName}}-config/src/main/resources/cfg/{{appName}}-service-definitions.xml +15 -0
- package/server/jvm/{{appName}}-config/src/main/resources/cfg/{{appName}}-system-definition.kts +20 -0
- package/server/jvm/{{appName}}-config/src/main/resources/cfg/{{appName}}-tables-dictionary.kts +14 -0
- package/server/jvm/{{appName}}-config/src/main/resources/cfg/{{appName}}-view-dictionary.kts +13 -0
- package/server/jvm/{{appName}}-deploy/build.gradle.kts +35 -0
- package/server/jvm/{{appName}}-dictionary-cache/build.gradle.kts +13 -0
- package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-dao/build.gradle.kts +1 -0
- package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-fields/build.gradle.kts +1 -0
- package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-hft/build.gradle.kts +1 -0
- package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-sysdef/build.gradle.kts +1 -0
- package/server/jvm/{{appName}}-dictionary-cache/{{appName}}-generated-view/build.gradle.kts +1 -0
- package/server/jvm/{{appName}}-distribution/build.gradle.kts +97 -0
- package/server/jvm/{{appName}}-eventhandler/build.gradle.kts +13 -0
- package/server/jvm/{{appName}}-eventhandler/src/test/resources/GenesisHome/donotdelete.txt +0 -0
- package/server/jvm/{{appName}}-messages/build.gradle.kts +6 -0
- package/server/jvm/{{appName}}-messages/src/main/kotlin/global/genesis/message/common/readme.md +1 -0
- package/server/jvm/{{appName}}-messages/src/main/kotlin/global/genesis/message/event/readme.md +1 -0
- package/server/jvm/{{appName}}-messages/src/main/kotlin/global/genesis/message/request/readme.md +1 -0
- package/server/jvm/{{appName}}-messages/src/main/resources/META-INF/global/genesis/message/product-info +1 -0
- package/server/jvm/{{appName}}-script-config/build.gradle.kts +16 -0
- package/server/jvm/{{appName}}-script-config/src/main/kotlin/donotdelete.txt +1 -0
- package/server/jvm/{{appName}}-script-config/src/main/resources/scripts/{{appName}}-dataserver.kts +13 -0
- package/server/jvm/{{appName}}-script-config/src/main/resources/scripts/{{appName}}-eventhandler.kts +13 -0
- package/server/jvm/{{appName}}-script-config/src/main/resources/scripts/{{appName}}-reqrep.kts +13 -0
- package/server/jvm/{{appName}}-script-config/src/test/kotlin/GenesisTestSupportTest.kt +23 -0
- package/server/jvm/{{appName}}-script-config/src/test/resources/GenesisHome/donotdelete.txt +0 -0
- package/server/jvm/{{appName}}-site-specific/README.md +3 -0
- package/server/jvm/{{appName}}-site-specific/build.gradle.kts +114 -0
- package/server/jvm/{{appName}}-site-specific/src/main/kotlin/donotdelete.txt +1 -0
- package/server/jvm/{{appName}}-site-specific/src/main/resources/cfg/genesis-system-definition.kts +52 -0
- package/server/jvm/{{appName}}-site-specific/src/main/resources/data/user.csv +2 -0
- package/server/nginx/Dockerfile +5 -0
- package/server/nginx/cert.crt +20 -0
- package/server/nginx/cert.key +27 -0
- package/server/nginx/default.conf +40 -0
- package/settings.gradle.kts +35 -0
package/.genx/.genxrc.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// GenX CLI Configuration
|
|
2
|
+
module.exports = {
|
|
3
|
+
// Script used to configure the seed
|
|
4
|
+
configure: () => require('./configure'),
|
|
5
|
+
// Additional seed details beyond what was captured during seed registration
|
|
6
|
+
details: () => require('./details'),
|
|
7
|
+
// Prompts used to capture seed configuration values
|
|
8
|
+
prompts: () => require('./prompts')
|
|
9
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const versions = require('./versions.json');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Signature is `async (data: inquirer.Answers, utils: SeedConfigurationUtils)`
|
|
5
|
+
*/
|
|
6
|
+
module.exports = async (data, utils) => {
|
|
7
|
+
// populate additional data fields
|
|
8
|
+
data.pkgName = data.appName.replace(/[\W_]/g, '');
|
|
9
|
+
data.rootElement = `${data.pkgName}-root`;
|
|
10
|
+
data.localGenId = data.appName.toUpperCase().replace("-", "_");
|
|
11
|
+
data.applicationVersionWeb = data.applicationVersion.split('-').shift();
|
|
12
|
+
data.versions = versions;
|
|
13
|
+
// to be exposed via user prompt in the future
|
|
14
|
+
data.useDocker = !!process.env.USE_DOCKER;
|
|
15
|
+
};
|
package/.genx/details.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const { description, license, name, version } = require("./package.json");
|
|
2
|
+
|
|
3
|
+
const summary = `
|
|
4
|
+
Name: ${name}
|
|
5
|
+
Description: ${description}
|
|
6
|
+
Version: ${version}
|
|
7
|
+
License: ${license}
|
|
8
|
+
`;
|
|
9
|
+
|
|
10
|
+
const nextStepsMessage = `
|
|
11
|
+
> Go into the (web) client directory with \`cd client\`\n
|
|
12
|
+
> Install dependencies with \`npm run bootstrap\`\n
|
|
13
|
+
> Start the development server with \`npm run dev\`
|
|
14
|
+
`;
|
|
15
|
+
|
|
16
|
+
module.exports = {
|
|
17
|
+
description,
|
|
18
|
+
license,
|
|
19
|
+
name,
|
|
20
|
+
summary,
|
|
21
|
+
version,
|
|
22
|
+
nextStepsMessage,
|
|
23
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@genesislcap/blank-app-seed-config",
|
|
3
|
+
"description": "Genesis Blank App Seed Configuration",
|
|
4
|
+
"version": "1.5.2",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"genxSeedConfig": {
|
|
7
|
+
"exclude": [
|
|
8
|
+
".git",
|
|
9
|
+
"package.json",
|
|
10
|
+
"package-lock.json",
|
|
11
|
+
".releaserc",
|
|
12
|
+
"LICENSE",
|
|
13
|
+
"CHANGELOG.md",
|
|
14
|
+
".npmignore",
|
|
15
|
+
".github",
|
|
16
|
+
".genx/tests",
|
|
17
|
+
".genx/scripts",
|
|
18
|
+
".genx/.releaserc"
|
|
19
|
+
],
|
|
20
|
+
"persistAnswers": true,
|
|
21
|
+
"processFiles": {
|
|
22
|
+
"exclude": [
|
|
23
|
+
".git",
|
|
24
|
+
".genx",
|
|
25
|
+
"node_modules",
|
|
26
|
+
".gradle",
|
|
27
|
+
"gradle"
|
|
28
|
+
],
|
|
29
|
+
"rename": true,
|
|
30
|
+
"interpolateVariables": {
|
|
31
|
+
"enabled": true,
|
|
32
|
+
"include": [
|
|
33
|
+
"Dockerfile",
|
|
34
|
+
"product-info",
|
|
35
|
+
".yml",
|
|
36
|
+
".sh",
|
|
37
|
+
".json",
|
|
38
|
+
".js",
|
|
39
|
+
".kts",
|
|
40
|
+
".ts",
|
|
41
|
+
".md",
|
|
42
|
+
".properties",
|
|
43
|
+
".html"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const {websocketValidator} = require('./validators');
|
|
2
|
+
|
|
3
|
+
const apiHostIntro = () => console.log(`
|
|
4
|
+
You can override the default Genesis server URL used during local developent.
|
|
5
|
+
`);
|
|
6
|
+
|
|
7
|
+
const ssoIntro = () => console.log(`
|
|
8
|
+
Optionally, you can enable the SSO function, which will redirect to identity provider before starting the application (given we only have one identity provider).
|
|
9
|
+
`);
|
|
10
|
+
|
|
11
|
+
module.exports = async (inquirer, prevAns = {}) => {
|
|
12
|
+
apiHostIntro();
|
|
13
|
+
const {
|
|
14
|
+
apiHost = prevAns.apiHost,
|
|
15
|
+
} = await inquirer.prompt([
|
|
16
|
+
{
|
|
17
|
+
name: 'setApiHost',
|
|
18
|
+
type: 'confirm',
|
|
19
|
+
message: 'Set API Host',
|
|
20
|
+
when: !prevAns.apiHost,
|
|
21
|
+
default: true,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'apiHost',
|
|
25
|
+
type: 'input',
|
|
26
|
+
message: 'API Host (with WebSocket prefix and suffix if any)',
|
|
27
|
+
when: ({setApiHost}) => setApiHost,
|
|
28
|
+
default: prevAns.apiHost || 'ws://localhost/gwf/',
|
|
29
|
+
validate: websocketValidator,
|
|
30
|
+
},
|
|
31
|
+
])
|
|
32
|
+
ssoIntro();
|
|
33
|
+
const {
|
|
34
|
+
enableSSO = prevAns.enableSSO
|
|
35
|
+
} = await inquirer.prompt([
|
|
36
|
+
{
|
|
37
|
+
name: 'enableSSO',
|
|
38
|
+
type: 'confirm',
|
|
39
|
+
message: 'Init SSO connection before loading application',
|
|
40
|
+
default: prevAns.enableSSO || false,
|
|
41
|
+
when: prevAns.enableSSO === undefined,
|
|
42
|
+
},
|
|
43
|
+
]);
|
|
44
|
+
return {
|
|
45
|
+
apiHost,
|
|
46
|
+
enableSSO
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const {mavenArtifactVersionRegex} = require('./validators');
|
|
2
|
+
|
|
3
|
+
module.exports = async (inquirer, prevAns = {}) => {
|
|
4
|
+
const {
|
|
5
|
+
groupId = prevAns.groupId,
|
|
6
|
+
applicationVersion = prevAns.applicationVersion
|
|
7
|
+
} = await inquirer.prompt([
|
|
8
|
+
{
|
|
9
|
+
name: 'groupId',
|
|
10
|
+
type: 'input',
|
|
11
|
+
message: 'Group Id',
|
|
12
|
+
when: !prevAns.groupId,
|
|
13
|
+
default:'global.genesis'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'applicationVersion',
|
|
17
|
+
type: 'input',
|
|
18
|
+
message: 'Application Version',
|
|
19
|
+
when: !prevAns.applicationVersion,
|
|
20
|
+
default:'1.0.0-SNAPSHOT',
|
|
21
|
+
validate: mavenArtifactVersionRegex
|
|
22
|
+
},
|
|
23
|
+
]);
|
|
24
|
+
return {
|
|
25
|
+
groupId,
|
|
26
|
+
applicationVersion,
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const websocketRegex = /wss?:\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}\b([-a-zA-Z0-9()@:%_\+.~#?&\/=]*)\b\/*$/;
|
|
2
|
+
const mavenArtifactVersionRegex = /([\d+{1,3}\.A-Z]+)/;
|
|
3
|
+
|
|
4
|
+
const websocketValidator = value => websocketRegex.test(value) || 'Not a valid websocket';
|
|
5
|
+
const mavenArtifactVersionValidator = value => mavenArtifactVersionRegex.test(value) || 'Not a valid version'
|
|
6
|
+
|
|
7
|
+
module.exports = {
|
|
8
|
+
websocketValidator,
|
|
9
|
+
mavenArtifactVersionValidator
|
|
10
|
+
}
|
package/.genx/prompts.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const apiPrompts = require('./prompts/api');
|
|
2
|
+
const genesisServerPrompts = require('./prompts/server');
|
|
3
|
+
const {description, license, name, version} = require('./package.json');
|
|
4
|
+
|
|
5
|
+
module.exports = async (inquirer, prevAns = {}) => {
|
|
6
|
+
console.log(`
|
|
7
|
+
Thanks for choosing this seed:
|
|
8
|
+
Name: ${name}
|
|
9
|
+
Description: ${description}
|
|
10
|
+
Version: ${version}
|
|
11
|
+
License: ${license}`);
|
|
12
|
+
|
|
13
|
+
const {apiHost, enableSSO} = await apiPrompts(inquirer, prevAns)
|
|
14
|
+
const {groupId, applicationVersion} = await genesisServerPrompts(inquirer, prevAns);
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
apiHost,
|
|
18
|
+
enableSSO,
|
|
19
|
+
groupId,
|
|
20
|
+
applicationVersion,
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
url=$1
|
|
4
|
+
http_response=$(curl -s -o /dev/null -w "%{http_code}" $url)
|
|
5
|
+
counter=15
|
|
6
|
+
|
|
7
|
+
until [[ $http_response == "200" || counter -lt 0 ]]; do
|
|
8
|
+
echo 'not all services running; waiting 10 seconds and trying again'
|
|
9
|
+
sleep 10
|
|
10
|
+
http_response=$(curl -s -o /dev/null -w "%{http_code}" $url)
|
|
11
|
+
((counter--))
|
|
12
|
+
done
|
|
13
|
+
|
|
14
|
+
curl $url
|
|
15
|
+
printf '\n'
|
|
16
|
+
|
|
17
|
+
if [[ $http_response == "200" ]]
|
|
18
|
+
then
|
|
19
|
+
echo 'all services started correctly'
|
|
20
|
+
else
|
|
21
|
+
echo 'not all services started correctly'
|
|
22
|
+
exit 1
|
|
23
|
+
fi
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
|
|
3
|
+
if [ ! -d "$HOME/.gradle" ]; then
|
|
4
|
+
mkdir "$HOME/.gradle"
|
|
5
|
+
fi
|
|
6
|
+
|
|
7
|
+
if [ ! -d "$HOME/.m2" ]; then
|
|
8
|
+
mkdir "$HOME/.m2"
|
|
9
|
+
fi
|
|
10
|
+
|
|
11
|
+
if [ -f "$HOME/.gradle/gradle.properties" ]; then
|
|
12
|
+
rm "$HOME/.gradle/gradle.properties"
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
touch $HOME/.gradle/gradle.properties
|
|
16
|
+
|
|
17
|
+
echo genesisArtifactoryUser="$genesisArtifactoryUser" >> $HOME/.gradle/gradle.properties
|
|
18
|
+
echo genesisArtifactoryPassword="$genesisArtifactoryPassword" >> $HOME/.gradle/gradle.properties
|
|
19
|
+
|
|
20
|
+
echo systemProp.org.gradle.internal.http.connectionTimeout=180000 >> $HOME/.gradle/gradle.properties
|
|
21
|
+
echo systemProp.org.gradle.internal.http.socketTimeout=180000 >> $HOME/.gradle/gradle.properties
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const { execSync } = require('node:child_process');
|
|
2
|
+
const { writeFileSync } = require('node:fs');
|
|
3
|
+
const { resolve } = require('node:path');
|
|
4
|
+
const current = require('../versions.json');
|
|
5
|
+
|
|
6
|
+
const run = (command) => execSync(command, {
|
|
7
|
+
stdio: ['pipe', 'pipe', 'ignore'],
|
|
8
|
+
})
|
|
9
|
+
.toString('utf8')
|
|
10
|
+
.trim();
|
|
11
|
+
|
|
12
|
+
const writeJSON = (json, path) => {
|
|
13
|
+
const data = JSON.stringify(json, null, 2) + '\n';
|
|
14
|
+
console.log(`Updating data in ${path}`);
|
|
15
|
+
try {
|
|
16
|
+
writeFileSync(path, data);
|
|
17
|
+
} catch (e) {
|
|
18
|
+
console.log(e);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const UI = run('npm info @genesislcap/foundation-ui@latest version');
|
|
23
|
+
const GSF = run(`jf rt s "libs-release-client/global/genesis/genesis-distribution/" --sort-by="name;created" --sort-order=desc --limit=1 --exclusions="*-RC*;*-SNAPSHOT*;*maven-metadata*;*test*;*TEST*" | grep path | tr -s ' ' | cut -d '/' -f 5`);
|
|
24
|
+
const Auth = run(`jf rt s "libs-release-client/global/genesis/auth-distribution/" --sort-by="name;created" --sort-order=desc --limit=1 --exclusions="*-RC*;*-SNAPSHOT*;*maven-metadata*;*test*;*TEST*" | grep path | tr -s ' ' | cut -d '/' -f 5`);
|
|
25
|
+
const latest = { UI, GSF, Auth };
|
|
26
|
+
|
|
27
|
+
console.log('Current:', current);
|
|
28
|
+
console.log('Latest:', latest);
|
|
29
|
+
|
|
30
|
+
if (current.UI !== UI || current.GSF !== GSF || current.Auth !== Auth) {
|
|
31
|
+
console.log('Newer versions available');
|
|
32
|
+
const path = resolve(__dirname, '../versions.json');
|
|
33
|
+
writeJSON(latest, path);
|
|
34
|
+
} else {
|
|
35
|
+
console.log('No newer versions available');
|
|
36
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
version: '3.3'
|
|
2
|
+
services:
|
|
3
|
+
gsf:
|
|
4
|
+
tty: true
|
|
5
|
+
container_name: gsf
|
|
6
|
+
build:
|
|
7
|
+
context: server/jvm/testapp-deploy/build/docker/
|
|
8
|
+
dockerfile: Dockerfile
|
|
9
|
+
networks:
|
|
10
|
+
qs_network:
|
|
11
|
+
aliases:
|
|
12
|
+
- localnode
|
|
13
|
+
ports:
|
|
14
|
+
- '9064:9064'
|
|
15
|
+
- '1337:22'
|
|
16
|
+
- '5432:5432'
|
|
17
|
+
- '4569:4569'
|
|
18
|
+
networks:
|
|
19
|
+
qs_network:
|
|
20
|
+
driver: bridge
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* System : Genesis Business Library
|
|
3
|
+
* Sub-System : multi-pro-code-test Configuration
|
|
4
|
+
* Version : 1.0
|
|
5
|
+
* Copyright : (c) Genesis
|
|
6
|
+
* Date : 2022-03-18
|
|
7
|
+
* Function : Provide fields config for multi-pro-code-test.
|
|
8
|
+
*
|
|
9
|
+
* Modification History
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
fields {
|
|
13
|
+
|
|
14
|
+
field("TRADE_ID", type = STRING)
|
|
15
|
+
field("QUANTITY", type = INT)
|
|
16
|
+
field("PRICE", type = DOUBLE)
|
|
17
|
+
field("SYMBOL", type = STRING)
|
|
18
|
+
field("DIRECTION", type = ENUM("BUY", "SELL", default = "BUY"))
|
|
19
|
+
|
|
20
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
!
|
|
3
|
+
! System : Genesis Business Library
|
|
4
|
+
! Sub-System : multi-pro-code-test Configuration
|
|
5
|
+
! Version : 1.0
|
|
6
|
+
! Copyright : (c) Genesis
|
|
7
|
+
! Date : 2022-03-18
|
|
8
|
+
! Function : Provide Process Definitions Config for multi-pro-code-test.
|
|
9
|
+
!
|
|
10
|
+
! Modification History
|
|
11
|
+
!
|
|
12
|
+
-->
|
|
13
|
+
<processes>
|
|
14
|
+
<process name="TESTAPP_DATASERVER">
|
|
15
|
+
<groupId>TESTAPP</groupId>
|
|
16
|
+
<start>true</start>
|
|
17
|
+
<options>-Xmx1024m -DXSD_VALIDATE=false</options>
|
|
18
|
+
<module>genesis-pal-dataserver</module>
|
|
19
|
+
<package>global.genesis.dataserver.pal</package>
|
|
20
|
+
<script>testapp-dataserver.kts</script>
|
|
21
|
+
<description>Displays real-time details</description>
|
|
22
|
+
<language>pal</language>
|
|
23
|
+
<loggingLevel>DEBUG,DATADUMP_ON</loggingLevel>
|
|
24
|
+
</process>
|
|
25
|
+
<process name="TESTAPP_EVENT_HANDLER">
|
|
26
|
+
<groupId>TESTAPP</groupId>
|
|
27
|
+
<start>true</start>
|
|
28
|
+
<options>-Xmx256m -DRedirectStreamsToLog=true -DXSD_VALIDATE=false</options>
|
|
29
|
+
<module>genesis-pal-eventhandler</module>
|
|
30
|
+
<package>global.genesis.eventhandler.pal</package>
|
|
31
|
+
<script>testapp-eventhandler.kts</script>
|
|
32
|
+
<description>Handles events</description>
|
|
33
|
+
<classpath>testapp-messages*,testapp-eventhandler*</classpath>
|
|
34
|
+
<language>pal</language>
|
|
35
|
+
</process>
|
|
36
|
+
</processes>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
!
|
|
3
|
+
! System : Genesis Business Library
|
|
4
|
+
! Sub-System : multi-pro-code-test Configuration
|
|
5
|
+
! Version : 1.0
|
|
6
|
+
! Copyright : (c) Genesis
|
|
7
|
+
! Date : 2022-03-18
|
|
8
|
+
! Function : Provide Service Definitions Config for multi-pro-code-test.
|
|
9
|
+
!
|
|
10
|
+
! Modification History
|
|
11
|
+
!
|
|
12
|
+
-->
|
|
13
|
+
<configuration>
|
|
14
|
+
<service host="localhost" name="TESTAPP_DATASERVER" port="11000"/>
|
|
15
|
+
<service host="localhost" name="TESTAPP_EVENT_HANDLER" port="11001"/>
|
|
16
|
+
</configuration>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* System : Genesis Business Library
|
|
3
|
+
* Sub-System : multi-pro-code-test Configuration
|
|
4
|
+
* Version : 1.0
|
|
5
|
+
* Copyright : (c) Genesis
|
|
6
|
+
* Date : 2022-03-18
|
|
7
|
+
* Function : Provide table definition config for multi-pro-code-test.
|
|
8
|
+
*
|
|
9
|
+
* Modification History
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
tables {
|
|
13
|
+
|
|
14
|
+
table (name = "TRADE", id = 2000) {
|
|
15
|
+
sequence(TRADE_ID, "TR")
|
|
16
|
+
QUANTITY
|
|
17
|
+
PRICE
|
|
18
|
+
SYMBOL
|
|
19
|
+
DIRECTION
|
|
20
|
+
|
|
21
|
+
primaryKey {
|
|
22
|
+
TRADE_ID
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* System : Genesis Business Library
|
|
3
|
+
* Sub-System : multi-pro-code-test Configuration
|
|
4
|
+
* Version : 1.0
|
|
5
|
+
* Copyright : (c) Genesis
|
|
6
|
+
* Date : 2022-03-18
|
|
7
|
+
* Function : Provide dataserver config for multi-pro-code-test.
|
|
8
|
+
*
|
|
9
|
+
* Modification History
|
|
10
|
+
*/
|
|
11
|
+
dataServer {
|
|
12
|
+
query("ALL_TRADES", TRADE)
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* System : Genesis Business Library
|
|
3
|
+
* Sub-System : multi-pro-code-test Configuration
|
|
4
|
+
* Version : 1.0
|
|
5
|
+
* Copyright : (c) Genesis
|
|
6
|
+
* Date : 2022-03-18
|
|
7
|
+
* Function : Provide event handler config for multi-pro-code-test.
|
|
8
|
+
*
|
|
9
|
+
* Modification History
|
|
10
|
+
*/
|
|
11
|
+
eventHandler {
|
|
12
|
+
|
|
13
|
+
eventHandler<Trade>(name = "TRADE_INSERT") {
|
|
14
|
+
schemaValidation = false
|
|
15
|
+
onCommit { event ->
|
|
16
|
+
entityDb.insert(event.details)
|
|
17
|
+
ack()
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"typescript.tsdk": "client/node_modules/typescript/lib"}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.0 (2023-08-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add alternate listAllFiles that traverses subdirs (GSF-5947) 0547c90
|
|
9
|
+
* added dsconfig CLI for design-system-configurator npm task FUI-1075 (#48) 7e29219
|
|
10
|
+
* set up prettier with eslint PTC-435 ed9d5f0
|
|
11
|
+
* set up prettier.js PTC-435 33e979a
|
|
12
|
+
* bump server version to 6.5.1 FUI-1130 9fcbe39
|
|
13
|
+
* enable initSSO configuration in genx FUI-899 5d6b2ea
|
|
14
|
+
* initSSO without the full bundle FUI-899 6a27a9b
|
|
15
|
+
* lockdown genesis, deployment plugin, kotlin and auth version and remove related questions from genx to reduce support issues with users entering in incorrect or incompatible values PTC-445 4172736
|
|
16
|
+
* lockdown genesis, deployment plugin, kotlin and auth version and remove related questions from genx to reduce support issues with users entering in incorrect or incompatible values PTC-445 db90124
|
|
17
|
+
* remove styles for entity manager that are part of library PTC-801 506d6ef
|
|
18
|
+
* switching Web client to the Genx CLI build FUI-1382 (#62) 2977141
|
|
19
|
+
* update deps and fix login breaking change 4c1b756
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* add functionality to luminance toggle button FUI-898 dfbeb2c
|
|
25
|
+
* Add genesis-config dependency so sysdef compiles on the IDE. PTC-694 (#24) 6fd30aa
|
|
26
|
+
* Add genesis-config dependency so sysdef compiles on the IDE. PTC-694 (#24) (#25) c39e911
|
|
27
|
+
* address npx lerna using v7 and failing - FUI-1407 (#59) 1a362db
|
|
28
|
+
* body font not being picked up issue resolved FUI-1390 (#64) 0b9b187
|
|
29
|
+
* ensuring ENABLE_SSO env var is processed correctly PSD-4 (#68) eb29eaf
|
|
30
|
+
* excluding all zip files in the lib's distribution folder. PTC-688 (#26) 599ebed
|
|
31
|
+
* Fixed an issue where the dependencies weren't being copied to the expected place for the docker-compose (#21) 8cc8367
|
|
32
|
+
* improve filter for file writing so no files are missed (GSF-5947) a79e97d
|
|
33
|
+
* make sure line endings are in unix format in .sh file PA-324 (#27) 0896a95
|
|
34
|
+
* overwrites files based on configuration c2f9ec7
|
|
35
|
+
* proper way to include library 4a7852e
|
|
36
|
+
* removed alpha and fast ds registration FUI-1433 (#65) 0a90c3f
|
|
37
|
+
* site specific publication now uses app name instead of being hardcoded (GSF-5947) 23b4248
|
|
38
|
+
* stop duplicate error appearing in project: PTC-809 (#30) d4d6fe5
|
|
39
|
+
* update login route configs to match latest foundation-login - FUI-1025 2a62f2f
|
|
40
|
+
* using fs-extra in the seed instead of as exported dependency from the foundation-cli cb39aba
|
|
41
|
+
* using latest fs-extra version a1e34e1
|
|
42
|
+
* using the move function 4555360
|
package/LICENSE
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
Apache License
|
|
4
|
+
Version 2.0, January 2004
|
|
5
|
+
http://www.apache.org/licenses/
|
|
6
|
+
|
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
8
|
+
|
|
9
|
+
1. Definitions.
|
|
10
|
+
|
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
16
|
+
|
|
17
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
18
|
+
|
|
19
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
20
|
+
|
|
21
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
22
|
+
|
|
23
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
24
|
+
|
|
25
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
26
|
+
|
|
27
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
28
|
+
|
|
29
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
30
|
+
|
|
31
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
32
|
+
|
|
33
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
34
|
+
|
|
35
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
36
|
+
|
|
37
|
+
You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
38
|
+
You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
39
|
+
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
40
|
+
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
|
41
|
+
|
|
42
|
+
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
43
|
+
|
|
44
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
45
|
+
|
|
46
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
47
|
+
|
|
48
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
49
|
+
|
|
50
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
51
|
+
|
|
52
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
53
|
+
|
|
54
|
+
END OF TERMS AND CONDITIONS
|
package/README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# {{appName}}
|
|
2
|
+
|
|
3
|
+
This project has been created from the Genesis Blank Application Seed. Our seeds allow users to quickly bootstrap
|
|
4
|
+
their projects. Each seed adheres to strict Genesis best practices, and has passed numerous performance, compliance and
|
|
5
|
+
accessibility checks.
|
|
6
|
+
|
|
7
|
+
{{!
|
|
8
|
+
|
|
9
|
+
# Testing
|
|
10
|
+
|
|
11
|
+
Quick test:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
npx -y @genesislcap/genx@latest init myapp -x
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Test local version (assuming `blank-app-seed` exists in current folder):
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
npx -y @genesislcap/genx@latest init myapp -x -s ./blank-app-seed
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Customise prompt answers:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
npx -y @genesislcap/genx@latest init myapp
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Enable SSO (use any API host which has SSO providers configured):
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
npx -y @genesislcap/genx@latest init myapp -x -s ./blank-app-seed --enableSSO --apiHost wss://prim-uat-internal.genesis.global/gwf/
|
|
33
|
+
```
|
|
34
|
+
}}
|
|
35
|
+
|
|
36
|
+
# Introduction
|
|
37
|
+
|
|
38
|
+
## Next Steps
|
|
39
|
+
|
|
40
|
+
To get a simple application running check the [Quick Start](https://learn.genesis.global/docs/getting-started/quick-start/) guide.
|
|
41
|
+
|
|
42
|
+
If you need an introduction to the Genesis platform and its modules it's worth heading [here](https://learn.genesis.global/docs/getting-started/learn-the-basics/simple-introduction/).
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## Project Structure
|
|
46
|
+
|
|
47
|
+
This project contains **server/jvm** and **client** directories which contain the server and client code respectively.
|
|
48
|
+
|
|
49
|
+
### Server
|
|
50
|
+
|
|
51
|
+
The server code for this project can be found [here](./server/jvm/README.md).
|
|
52
|
+
It is built using a DSL-like definition based on the Kotlin language: GPAL.
|
|
53
|
+
|
|
54
|
+
### Web Client
|
|
55
|
+
|
|
56
|
+
The Web client for this project can be found [here](./client/README.md). It is built using Genesis's next
|
|
57
|
+
generation web development framework, which is based on Web Components. Our state-of-the-art design system and component
|
|
58
|
+
set is built on top of [Microsoft FAST](https://www.fast.design/docs/introduction/).
|
|
59
|
+
|
|
60
|
+
# License
|
|
61
|
+
|
|
62
|
+
This is free and unencumbered software released into the public domain. For full terms, see [LICENSE](./LICENSE)
|
|
63
|
+
|
|
64
|
+
**NOTE** This project uses licensed components listed in the next section, thus licenses for those components are required during development.
|
|
65
|
+
|
|
66
|
+
## Licensed components
|
|
67
|
+
Genesis low-code platform
|