This minimal extension allows you to directly access to workadventure world based on a local github project.
-
Start Adventure: This feature welcomes you to the GitHub Adventure and provides an option to start the adventure. If you choose to start, it will open the adventure map in your default browser.
-
Open GitHub Adventure Homepage: If you're not in a Git repository, this feature offers to open the GitHub Adventure homepage for you to access a remote Git repository.
- Download the extension from the Visual Studio Code Marketplace.
⚠️ Start The GithubAdventure API project. (Locally) API- Open a Git repository in Visual Studio Code.
- Press
F1to open the command palette. - Type
GitHub Adventureand select the command to start the adventure.
- Clone this repository.
- Run
npm installto install all the necessary dependencies. - Press
F5to open a new window with the extension loaded. - Run the command from the command palette by pressing (
Ctrl+Shift+PorCmd+Shift+Pon Mac) and typingGitHub Adventure.
This extension uses the following environment variables:
GIT_ADVENTURE_MAP_HOST: The host URL for the GitHub Adventure Map.GIT_ADVENTURE_MAP_API_HOST: The API host for the GitHub Adventure Map.WA_HOST: The host URL for Work Adventure.
These variables are defined in the .env file. When adding new variables, make sure to add them to the .vscode/launch.json file as well to ensure that they are available when running the app in the debugger.
You must be able to run this project locally.
GithubAdventure API: https://github.com/johan-mickael-myges/github-map
This extension only works with the GithubAdventure API running locally.
You have to start the GithubAdventure API project in order to generate the dynamic maps.
***Yeah, sorry, we do not have time to deploy the API on a server. But in another versions maybe ? ***
Thanks to the WorkAdventure team for allowing us to use their platform to create this extension. This project is for educational purposes only.
Enjoy!
