This is where the Microworlds live. Microworlds end up getting hosted here.
To create a new Microworld, make a Pull Request on this repository with a new folder containing your world.
Your new Microworld folder must contain a JSON
file with the same name as the
folder. That JSON
file must contain the following information (linking to your
new Microworld files):
{
"name": "example",
"documentation": "https://micros.hackclub.dev/example/docs.md",
"template": "https://micros.hackclub.dev/example/engine.js",
"programAddress": "https://micros.hackclub.dev/example/default.js"
}
- Clone this repository
git clone https://github.com/hackclub/micros.git && cd micros
- Install
live-server
to handle CORSnpm install -g live-server
- Run server
live-server --cors
- View the example Microworld
open https://microworlds.hackclub.dev/?file=http://127.0.0.1:8080/example/test.json