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-serverto 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