├── README.md ├── course1 ├── README.md ├── scenario1 │ └── index.json └── scenario2 │ └── index.json ├── course2 ├── README.md ├── category1 │ ├── scenarioA │ │ └── index.json │ └── scenarioB │ │ └── index.json ├── scenario3 │ └── index.json ├── scenario4 │ └── index.json └── structure.json ├── scenario1 └── index.json ├── scenario2 └── index.json └── structure.json /README.md: -------------------------------------------------------------------------------- 1 | # Killercoda Scenario Examples Courses 2 | 3 | See these in action here: https://killercoda.com/examples-courses 4 | 5 | Documentation: https://killercoda.com/creators 6 | 7 | 8 | ## Structure 9 | 10 | Scenarios in a subdirectory are considered a group/course. 11 | 12 | Once a `structure.json` is available, only the information from that file will be used. 13 | 14 | Any scenario or directory that exists outside the `structure.json` will be ignored. 15 | 16 | For example: the `/scenario1` is not included here. 17 | -------------------------------------------------------------------------------- /course1/README.md: -------------------------------------------------------------------------------- 1 | The simplest way of grouping scenarios into a course is by just putting them into the same subdirectory. 2 | -------------------------------------------------------------------------------- /course1/scenario1/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Scenario ONE", 3 | "description": "This is the description of scenario ONE in course ONE", 4 | "backend": { 5 | "imageid": "ubuntu" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /course1/scenario2/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Scenario TWO", 3 | "description": "This is the description of scenario TWO in course ONE", 4 | "backend": { 5 | "imageid": "ubuntu" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /course2/README.md: -------------------------------------------------------------------------------- 1 | Here we specify the structure using a `structure.json`. 2 | -------------------------------------------------------------------------------- /course2/category1/scenarioA/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "backend": { 3 | "imageid": "ubuntu" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /course2/category1/scenarioB/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "backend": { 3 | "imageid": "ubuntu" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /course2/scenario3/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Scenario THREE", 3 | "description": "This is the description of scenario THREE in course TWO", 4 | "backend": { 5 | "imageid": "ubuntu" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /course2/scenario4/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Scenario FOUR", 3 | "description": "This is the description of scenario FOUR in course TWO", 4 | "backend": { 5 | "imageid": "ubuntu" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /course2/structure.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Course TWO has a nice title", 3 | "description": "This is the description of course TWO", 4 | "items": [ 5 | { "path": "scenario3" }, 6 | { "path": "scenario4" }, 7 | { "path": "../course1/scenario1" }, 8 | { 9 | "path": "../course1/scenario2", 10 | "title": "New title for scenario TWO", 11 | "description": "We reference a scenario from another directory and override title and description" 12 | }, 13 | { "path": "category1/scenarioB" } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /scenario1/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Scenario ONE", 3 | "description": "This is the description of scenario ONE", 4 | "backend": { 5 | "imageid": "ubuntu" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /scenario2/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Scenario TWO", 3 | "description": "This is the description of scenario TWO", 4 | "backend": { 5 | "imageid": "ubuntu" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /structure.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { "path": "scenario2" }, 4 | { "path": "course1", "title": "Override title of course ONE" }, 5 | { "path": "course2" } 6 | ] 7 | } 8 | --------------------------------------------------------------------------------