harperdb 4.5.9 → 4.5.11
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/README.md +1 -1
- package/application-template/README.md +26 -8
- package/application-template/config.yaml +18 -15
- package/application-template/web/index.html +29 -0
- package/application-template/web/index.js +18 -0
- package/application-template/web/styles.css +57 -0
- package/bin/harperdb.js +66 -66
- package/bin/lite.js +61 -61
- package/launchServiceScripts/launchNatsIngestService.js +63 -63
- package/launchServiceScripts/launchNatsReplyService.js +61 -61
- package/launchServiceScripts/launchUpdateNodes4-0-0.js +61 -61
- package/npm-shrinkwrap.json +286 -285
- package/package.json +1 -1
- package/resources/Resources.d.ts +3 -1
- package/server/Server.d.ts +2 -0
- package/server/jobs/jobProcess.js +63 -63
- package/server/threads/threadServer.js +61 -61
- package/studio/build-local/asset-manifest.json +33 -33
- package/studio/build-local/index.html +1 -1
- package/studio/build-local/static/js/833.fbb1857f.chunk.js +1 -0
- package/studio/build-local/static/js/{504.6e6ee908.chunk.js → 845.79392583.chunk.js} +2 -2
- package/studio/build-local/static/js/browse-csvupload.2a02693a.chunk.js +1 -0
- package/studio/build-local/static/js/browse-datatable.dc2a41ee.chunk.js +1 -0
- package/studio/build-local/static/js/browse-entitymanager.78d9f3cf.chunk.js +1 -0
- package/studio/build-local/static/js/browse-jsonviewer.b9b13d1d.chunk.js +1 -0
- package/studio/build-local/static/js/custom-functions.5e20728d.chunk.js +1 -0
- package/studio/build-local/static/js/instance-cluster.7fa04087.chunk.js +1 -0
- package/studio/build-local/static/js/instance-config.cab20f8e.chunk.js +1 -0
- package/studio/build-local/static/js/instance-logs.c590cea3.chunk.js +1 -0
- package/studio/build-local/static/js/instance-roles.02c01413.chunk.js +1 -0
- package/studio/build-local/static/js/{instance-status.192a5e2f.chunk.js → instance-status.872064e6.chunk.js} +1 -1
- package/studio/build-local/static/js/instance-users-datatable.eaa7f9f0.chunk.js +1 -0
- package/studio/build-local/static/js/instance-users-edit.b3009a22.chunk.js +1 -0
- package/studio/build-local/static/js/instance-users.d4c9a21b.chunk.js +1 -0
- package/studio/build-local/static/js/instance.77a6105d.chunk.js +1 -0
- package/studio/build-local/static/js/instances.803ec44d.chunk.js +1 -0
- package/studio/build-local/static/js/main.0b2d36d7.js +2 -0
- package/studio/build-local/static/js/offline-app.e75335f8.chunk.js +1 -0
- package/studio/build-local/static/js/online-app.161383cc.chunk.js +1 -0
- package/studio/build-local/static/js/organization-billing.8a6543c9.chunk.js +1 -0
- package/studio/build-local/static/js/organization-users.28a7fddd.chunk.js +1 -0
- package/studio/build-local/static/js/organization.7e6de94f.chunk.js +1 -0
- package/studio/build-local/static/js/organizations.a35fef39.chunk.js +1 -0
- package/studio/build-local/static/js/profile.ec638faf.chunk.js +1 -0
- package/studio/build-local/static/js/resetPassword.c64684e3.chunk.js +1 -0
- package/studio/build-local/static/js/roles-jsonviewer.28347efe.chunk.js +1 -0
- package/studio/build-local/static/js/signIn.95abea6a.chunk.js +1 -0
- package/studio/build-local/static/js/signUp.a095114b.chunk.js +1 -0
- package/studio/build-local/static/js/structure-reloader.89712250.chunk.js +1 -0
- package/studio/build-local/static/js/topnav.6ac108a6.chunk.js +1 -0
- package/studio/build-local/static/js/updatePassword.839328e6.chunk.js +1 -0
- package/utility/scripts/restartHdb.js +63 -63
- package/studio/build-local/static/js/833.e460eaf4.chunk.js +0 -1
- package/studio/build-local/static/js/browse-csvupload.84fd1ae9.chunk.js +0 -1
- package/studio/build-local/static/js/browse-datatable.21e650e1.chunk.js +0 -1
- package/studio/build-local/static/js/browse-entitymanager.4547c0d8.chunk.js +0 -1
- package/studio/build-local/static/js/browse-jsonviewer.71355c20.chunk.js +0 -1
- package/studio/build-local/static/js/custom-functions.31d65bca.chunk.js +0 -1
- package/studio/build-local/static/js/instance-cluster.031dcced.chunk.js +0 -1
- package/studio/build-local/static/js/instance-config.9a23d6ae.chunk.js +0 -1
- package/studio/build-local/static/js/instance-logs.fdaf96ec.chunk.js +0 -1
- package/studio/build-local/static/js/instance-roles.984ced56.chunk.js +0 -1
- package/studio/build-local/static/js/instance-users-datatable.40846e47.chunk.js +0 -1
- package/studio/build-local/static/js/instance-users-edit.f10344c8.chunk.js +0 -1
- package/studio/build-local/static/js/instance-users.adc43a74.chunk.js +0 -1
- package/studio/build-local/static/js/instance.9689d62b.chunk.js +0 -1
- package/studio/build-local/static/js/instances.f28e5ce7.chunk.js +0 -1
- package/studio/build-local/static/js/main.491129ee.js +0 -2
- package/studio/build-local/static/js/offline-app.5bc1159b.chunk.js +0 -1
- package/studio/build-local/static/js/online-app.22102869.chunk.js +0 -1
- package/studio/build-local/static/js/organization-billing.56e7e051.chunk.js +0 -1
- package/studio/build-local/static/js/organization-users.b46b9e8f.chunk.js +0 -1
- package/studio/build-local/static/js/organization.eab64d57.chunk.js +0 -1
- package/studio/build-local/static/js/organizations.4567ae59.chunk.js +0 -1
- package/studio/build-local/static/js/profile.d45cd6b3.chunk.js +0 -1
- package/studio/build-local/static/js/resetPassword.812fc880.chunk.js +0 -1
- package/studio/build-local/static/js/roles-jsonviewer.73c8bb9d.chunk.js +0 -1
- package/studio/build-local/static/js/signIn.32766fa9.chunk.js +0 -1
- package/studio/build-local/static/js/signUp.07fd6662.chunk.js +0 -1
- package/studio/build-local/static/js/structure-reloader.ce2b39d2.chunk.js +0 -1
- package/studio/build-local/static/js/topnav.e661156c.chunk.js +0 -1
- package/studio/build-local/static/js/updatePassword.dcac970c.chunk.js +0 -1
- /package/studio/build-local/static/js/{504.6e6ee908.chunk.js.LICENSE.txt → 845.79392583.chunk.js.LICENSE.txt} +0 -0
- /package/studio/build-local/static/js/{main.491129ee.js.LICENSE.txt → main.0b2d36d7.js.LICENSE.txt} +0 -0
package/README.md
CHANGED
|
@@ -1,15 +1,33 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Harper Application Template
|
|
2
2
|
|
|
3
|
-
This is a template for building [
|
|
3
|
+
This is a template for building [Harper](https://www.harpersystems.dev/) applications. You can download this repository as a starting point for building applications with Harper.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
To get started, make sure you have [installed Harper](https://docs.harperdb.io/docs/deployments/install-harper), which can be quickly done with `npm install -g harperdb`.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
You can run your application from the directory where you downloaded the contents of this repository with: `harperdb run /path/to/your-app`.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Or if you set your current working directory to that directory, you can run it as `harperdb run .`.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Once running, test your application works by querying the `/Greeting` endpoint:
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
```sh
|
|
14
|
+
curl http://localhost:9926/Greeting
|
|
15
|
+
```
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
Should result in:
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{"greeting":"Hello, world!"}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Or navigate to [http://localhost:9926](http://localhost:9926) in a browser and view the functional web application.
|
|
24
|
+
|
|
25
|
+
For more information about getting started with HarperDB and building applications, see our [getting started guide](https://docs.harperdb.io/docs/getting-started).
|
|
26
|
+
|
|
27
|
+
For more information on Harper Components, see the [Components documentation](https://docs.harperdb.io/docs/developers/components).
|
|
28
|
+
|
|
29
|
+
This template includes a [default configuration](./config.yaml), which specifies how files are handled in your application.
|
|
30
|
+
|
|
31
|
+
The [schema.graphql](./schema.graphql) is the table schema definition. This is the main starting point for defining your database schema, specifying which tables you want and what attributes/fields they should have.
|
|
32
|
+
|
|
33
|
+
The [resources.js](./resources.js) provides a template for defining JavaScript resource classes, for customized application logic in your endpoints.
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
# This
|
|
2
|
-
#
|
|
3
|
-
#
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
# This is the configuration file for the application.
|
|
2
|
+
# It specifies built-in Harper components that will load the specified feature and files.
|
|
3
|
+
# For more information, see https://docs.harperdb.io/docs/developers/components/built-in
|
|
4
|
+
|
|
5
|
+
# This provides the HTTP REST interface for all exported resources
|
|
6
|
+
rest: true
|
|
7
|
+
|
|
8
|
+
# These reads GraphQL schemas to define the schema of database/tables/attributes.
|
|
9
|
+
graphqlSchema:
|
|
10
|
+
files: 'schema.graphql'
|
|
11
|
+
|
|
12
|
+
# Loads JavaScript modules such that their exports are exported as resources
|
|
13
|
+
jsResource:
|
|
14
|
+
files: 'resources.js'
|
|
15
|
+
|
|
16
|
+
# Serve the static files from the web directory as a web application
|
|
17
|
+
static:
|
|
18
|
+
files: 'web/*'
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Harper Application Template</title>
|
|
7
|
+
<link rel="stylesheet" href="styles.css" />
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<main>
|
|
11
|
+
<h1>Harper Application Template</h1>
|
|
12
|
+
<p>
|
|
13
|
+
This is an example of serving static assets using the built-in
|
|
14
|
+
<a
|
|
15
|
+
href="https://docs.harperdb.io/docs/developers/components/built-in#static"
|
|
16
|
+
>static component</a
|
|
17
|
+
>. <br />
|
|
18
|
+
You can use this component to serve web applications!
|
|
19
|
+
</p>
|
|
20
|
+
<div>
|
|
21
|
+
<p class="count" id="count">0</p>
|
|
22
|
+
<button class="decrement" id="decrement">-</button>
|
|
23
|
+
<button class="increment" id="increment">+</button>
|
|
24
|
+
</div>
|
|
25
|
+
</main>
|
|
26
|
+
|
|
27
|
+
<script src="index.js"></script>
|
|
28
|
+
</body>
|
|
29
|
+
</html>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let count = 0;
|
|
2
|
+
const counterDisplay = document.getElementById('count');
|
|
3
|
+
const decrementButton = document.getElementById('decrement');
|
|
4
|
+
const incrementButton = document.getElementById('increment');
|
|
5
|
+
|
|
6
|
+
function updateDisplay() {
|
|
7
|
+
counterDisplay.textContent = count;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
decrementButton.addEventListener('click', () => {
|
|
11
|
+
count--;
|
|
12
|
+
updateDisplay();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
incrementButton.addEventListener('click', () => {
|
|
16
|
+
count++;
|
|
17
|
+
updateDisplay();
|
|
18
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
body {
|
|
2
|
+
font-family: Arial, sans-serif;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
height: 100vh;
|
|
7
|
+
margin: 0;
|
|
8
|
+
background-color: #f5f5f5;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
main {
|
|
12
|
+
text-align: center;
|
|
13
|
+
background-color: white;
|
|
14
|
+
padding: 2rem;
|
|
15
|
+
border-radius: 8px;
|
|
16
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.count {
|
|
20
|
+
font-size: 4rem;
|
|
21
|
+
margin: 1rem 0;
|
|
22
|
+
color: #333;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.counter-controls {
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
gap: 1rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
button {
|
|
32
|
+
font-size: 1.5rem;
|
|
33
|
+
width: 3rem;
|
|
34
|
+
height: 3rem;
|
|
35
|
+
border: none;
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
transition: background-color 0.2s;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.decrement {
|
|
42
|
+
background-color: #ff6b6b;
|
|
43
|
+
color: white;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.decrement:hover {
|
|
47
|
+
background-color: #ff5252;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.increment {
|
|
51
|
+
background-color: #4ecdc4;
|
|
52
|
+
color: white;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.increment:hover {
|
|
56
|
+
background-color: #39b2a9;
|
|
57
|
+
}
|