You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/operate/control/single-page-apps.md
+19-8Lines changed: 19 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,16 @@ type: docs
7
7
description: "Create and deploy single page applications on the Viam platform."
8
8
---
9
9
10
+
- Deploy front-end apps
11
+
-
12
+
13
+
you can have multiple HTML files
14
+
files have to all be deployed
15
+
10
16
With single page apps you can create and deploy custom web interfaces for your machines that use a single HTML page.
11
-
Single page apps are accessible from a dedicated URL (`appname.publicnamespace.viamapps.com`) and hosting and authentication is handled for you.
17
+
Single page apps are accessible from a dedicated URL (`appname_publicnamespace.viamapplications.com`) and hosting and authentication is handled for you.
18
+
19
+
google SPA and include what exactly that means
12
20
13
21
When opening an app, users log in and then select a machine they have access to.
14
22
Then your app is rendered and ready for use.
@@ -56,7 +64,7 @@ TODO: how do you connect to the machine / how do you access the api key?
56
64
"applications": [
57
65
{
58
66
"name": "your-app-name",
59
-
"type": "web",
67
+
"type": "single_machine",
60
68
"entrypoint": "dist/index.html"
61
69
}
62
70
]
@@ -75,7 +83,7 @@ TODO: how do you connect to the machine / how do you access the api key?
75
83
"applications": [
76
84
{
77
85
"name": "dashboard",
78
-
"type": "web",
86
+
"type": "single_machine",
79
87
"entrypoint": "dist/index.html"
80
88
}
81
89
]
@@ -104,8 +112,8 @@ The `applications` field is an array of application objects with the following p
|`name`| string | The name of your application, which will be a part of the app's URL (`name.publicnamespace.viamapps.com`). For more information on valid names see [](/operate/reference/naming-modules). |
108
-
|`type`| string | The type of application (currently only `"web"` is supported). |
115
+
|`name`| string | The name of your application, which will be a part of the app's URL (`name_publicnamespace.viamapplications.com`). For more information on valid names see [](/operate/reference/naming-modules). |
116
+
|`type`| string | The type of application (currently only `"single_machine"` is supported). |
109
117
|`entrypoint`| string | The path to the HTML entry point for your application. The `entrypoint` field specifies the path to your application's entry point. For example: <ul><li><code>"dist/index.html"</code>: Static content rooted at the `dist` directory</li><li><code>"dist/foo.html"</code>: Static content rooted at the `dist` directory, with `foo.html` as the entry point</li><li><code>"dist/"</code>: Static content rooted at the `dist` directory (assumes `dist/index.html` exists)</li><li><code>"dist/bar/foo.html"</code>: Static content rooted at `dist/bar` with `foo.html` as the entry point</li></ul> |
110
118
111
119
{{% /tablestep %}}
@@ -114,10 +122,11 @@ The `applications` field is an array of application objects with the following p
114
122
**Package your app into a module and upload it** to the Viam Registry:
0 commit comments