Skip to content

Commit

Permalink
Changed to use vite, demo working
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Moffat <[email protected]>
  • Loading branch information
robmoffat committed Jul 1, 2023
1 parent 0e0cc11 commit b9e842e
Show file tree
Hide file tree
Showing 21 changed files with 496 additions and 2,680 deletions.
39 changes: 37 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,37 @@
# fdc3-for-the-web
Proof of concept of FDC3 for the web
# FDC3 For The Web

This is a minimal proof-of-concept for FDC3 For the Web.

## To Run

1. From the Command Line:
```
yarn install
yarn vite dev
```
2. Point browser at http://localhost:5000/static/da/
3. This is your dummy desktop agent, which has two apps you can launch:
- App1 Can Broadcast via FDC3.
- App2 Listens.
4. Launch the apps, press the button, watch messages pass between them.
## What This Project Contains
- In `\lib`: A minimal implementation called `webc3.ts`. This relies on the `post-message` strategy for communicating between apps and the desktop agent. This supports two functions:
- `supply`: Called by the desktop agent on startup, allows it to supply FDC3 APIs to apps when they ask for one.
- `load`: Called (with options) by an FDC3 Aoo to retrieve the API.
- In `\demo`: A fixture for demonstrating the above, containing two apps, `app1` and `app2` and a rudimentary `dummy-desktop-agent` all of which use the `webc3.ts` library.
## Notes
- Since this uses Vite, you can modify the code and see it running the browser immediately.
- This currently only supports FDC3 2.0
Loading

0 comments on commit b9e842e

Please sign in to comment.