Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Add j2cl demo #11

Merged
merged 1 commit into from
Jun 13, 2022
Merged

Add j2cl demo #11

merged 1 commit into from
Jun 13, 2022

Conversation

dsyer
Copy link
Contributor

@dsyer dsyer commented Jun 6, 2022

In /etc/docker/daemon.json:

"ipv6": true, "fixed-cidr-v6": "fd00::/80"

and

$ sudo systemctl restart docker

Copy link
Contributor

@sdeleuze sdeleuze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing this sample, could you please:

  • Add a proper README.md like other samples (especially needed for this one).
  • Add a run.sh script that will run the bazel run src/main/java/com/google/j2cl/samples/wasm:jsapp_dev_server like other samples.
  • Expose the running dev server on port 8000 in order to make it accessible on the host where google-chrome-unstable is expected to run (I am curious how did you test it without that).
  • Move the sample to java/browser-hello-world.
  • Check if that's possible to perform DOM manipulation on Java side to be consistent with other samples.

@dsyer
Copy link
Contributor Author

dsyer commented Jun 8, 2022

It's currently not possible to run the server on a different port (google/j2cl#147), but I tidied up the other stuff. Up to you to decide what to do about the port. There is a change in the pipeline (bazelbuild/rules_closure#557) that makes the ipv6 requirement go away, so I guess we could wait for that.

@dsyer
Copy link
Contributor Author

dsyer commented Jun 13, 2022

The upstream changes have been merged, so this should now work with ipv4 and on port 8000.

@sdeleuze sdeleuze changed the title Add j2cl demo (requires ipv6) Add j2cl demo Jun 13, 2022
@sdeleuze sdeleuze merged commit 15492ac into vmware-archive:main Jun 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants