The purpose of this repository is to show how to host scenarios for use with https://orbat-mapper.app. ORBAT Mapper does not store scenarios on a server, but you can import scenarios from URLs and create a sharable link:
Example of sharable URL for a scenario stored in this repo: https://orbat-mapper.app/?loadScenarioURL=https%3A%2F%2Forbat-mapper.github.io%2Fscenario-hosting-test%2FFramland-Arnland-example.json
A convenient place to store and host a scenario is GitHub. For this to work you have to follow the following steps:
- Create a public repository and initialize it with a README
- Add your downloaded scenario files to the root of the repository
- Create a Github Pages site from your repository
- You now need to find the URL for the scenario JSON files you have uploaded. For this repository the
Framland-Arnland-example.json
files is hosted on the url https://orbat-mapper.github.io/scenario-hosting-test/Framland-Arnland-example.json A convenient way to do this is to add links to them in the README.md file like this:
List of scenarios:
- [Framland-Arnland-example.json](Framland-Arnland-example.json)
List of scenarios:
- Framland-Arnland-example.json
- [Scenario merge testing1.json](Scenario merge testing1.json)
When the site is published the README will be rendered with links that you can copy and paste into ORBAT Mapper.