Publish Your Own
In this section you’re going to:
- Clone the Web Agent Developers repo on your local drive.
- Upload the pre-written app (Hello World) to your agent drive.
- Publish it by marking the folder public.
- Install and run it on your agent.
You’ll find demo apps (and the source of this website) in the Web Agent Developers repository on Github.
Instructions
- Clone the Web Agent Developers repo onto your own PC or laptop.
git clone https://github.com/MagicIdentity/Developers
- Navigate directly to your Web Agent in your browser.
- That is, simply type the daemon name in the URL bar, such as
your.webagent.name
. - If this doesn’t show the Home page, you may need to reclaim the web agent.
- That is, simply type the daemon name in the URL bar, such as
- Click Drive to view your drive.
- Click
apps/helloWorld
folder to upload.- Note: there’s a separate Upload Files which lets you select a bunch of individual files as opposed to a single folder.
- When you upload a folder, the entire tree below that folder is uploaded too.
Upload Folder top right, and select the - Click
helloWorld
folder.- In Select mode, you can set permissions, download and delete entries in drive.
- Note that deleting a folder automatically deletes all its descendants too!
Selection top left, and tick the newly uploaded - Click
helloWorld
folder is now public.- If a folder is made public, that applies to all its descendants.
- You can mark a descendant folder or file as private if required.
- You can clear the public or private setting using Clear when in select mode.
Public top middle, and note that the - Click Home top right to get back to your home display.
- Click
- Note that an app is defined by the HTML file, in this case
helloWorld.html
.
Add Application top right to install a new app.
- Note that an app is defined by the HTML file, in this case
- Enter the URL of your newly published app to install it:
https://<your.webagent.name>/drive/helloWorld/helloWorld.html
- If you got the URL right, the app will load and say Hello!
Congratulations! You’ve published your own app using your own web agent.
Now take a look at how it works!