Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bevy_remote #1

Draft
wants to merge 99 commits into
base: main
Choose a base branch
from
Draft

bevy_remote #1

wants to merge 99 commits into from

Conversation

coreh
Copy link
Owner

@coreh coreh commented Jan 14, 2024

WIP: Use this branch to try out the makeshift bevy web editor locally.

image

Instructions for testing locally

  1. From your local bevy repo, fetch and checkout this branch: (bevy-remote)
git remote add coreh git@github.com:coreh/bevy.git
git fetch coreh
git checkout bevy-remote
  1. Clone the makeshift-web repo into a separate folder:
git clone git@github.com:coreh/makeshift-web.git
  1. Install bun for building/serving the React/JS Editor code:
curl -fsSL https://bun.sh/install | bash
  1. Run an example enabling the remote_http feature: (This will make bevy listen on port 8765 for commands)
cargo run --features remote_http --example tonemapping
  1. From another terminal, install dependencies and run the makeshift web editor:
bun install
bun run dev
  1. Open localhost:3000 on your browser, and from the UI choose the target “HTTP (Localhost)”

Note
To run the wasm version, build the example with cargo run -p build-wasm-example -- tonemapping and copy the files from examples/wasm/target/ into a new public/bevy/ folder in the web editor. You will need wasm-bindgen and the wasm toolchain installed.

@coreh coreh changed the base branch from dynamic-term-builder to main February 8, 2024 04:49
Repository owner deleted a comment from github-actions bot Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant