Quick Start
In this tutorial we will publish a scene to Beetmash.
This tutorial assumes basic knowledge of the cargo
and crates.io
workflows.
Show Final Code
👋 Hello World!
Lets start by creating a new project and publishing it. Because this is a demo crate lets be polite to future publishers and use a scoped name, I recommend the {github_username}_beetmash_
prefix.
Any crate can be visited on Beetmash, try finding yours!
beetmash.com/crates/mrchantey_beetmash_hello_world🎥 Our first scene
Beetmash scenes are declared in Cargo.toml
in a similar way to examples, lets create a scene and publish it:
- Create a scene file in
scenes/hello-world.json
View scene file
- Declare the scene in
Cargo.toml
- Publish the changes
💃 Running an App
Note that when we visited the scene the app panel says no app specified
. There is a simple base app in the beetmash_template
crate called my-base-scene
, lets use that one:
- Install
beetmash_template
- Declare the app in
Cargo.toml
- Publish
Now when we revisit the page we can load the scene!