Skip to content

Commit

Permalink
Hello World Sample Scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
mapalko committed Sep 15, 2020
1 parent bad62f0 commit 0ecc05a
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
25 changes: 25 additions & 0 deletions hello-world/README.md
@@ -0,0 +1,25 @@
# Katacoda Hello World
This is an example repository. Starting building your own scenario by editing the files in this directory. Create additional scenarios by adding additional directories to the top level folder.


## index.json
The file _index.json_ contains all the information about the scenario. It has the title, description and a heading for each step.

The file also contains an imageid. This refers to the Katacoda environment. Here are some environment image IDs you may find useful:

| **Environment** | **Image ID** |
|------------------|---------------|
| Docker | docker |
| Kubernetes | kubernetes |
| CoreOS | coreos |
| Node.js v6 | node6 |
| Go | go |
| C# | c# |
| Java | java8 |
| Bash | bash |

## Pro Author Accounts
Interested in metrics, private repositories and environments for classroom teaching? Update to become a Pro Author at https://katacoda.com/teach

## Interactive Developer Portals
Want to take your scenarios to the next level? Visit https://katacoda.com/embed
1 change: 1 addition & 0 deletions hello-world/finish.md
@@ -0,0 +1 @@
You've completed your first Katacoda scenario!
26 changes: 26 additions & 0 deletions hello-world/index.json
@@ -0,0 +1,26 @@
{
"title": "Hello World Scenario",
"description": "Your First Scenario",
"difficulty": "beginner",
"time": "2 minutes",
"details": {
"steps": [{
"title": "Step 1 - Run Command",
"text": "step1.md"
}],
"intro": {
"text": "intro.md",
"credits": ""
},
"finish": {
"text": "finish.md"
}
},
"environment": {
"uilayout": "terminal",
"uimessage1": "\u001b[32mYour Interactive Bash Terminal.\r\nStart Kubernetes using `launch.sh`\u001b[m\r\n"
},
"backend": {
"imageid": "bash"
}
}
1 change: 1 addition & 0 deletions hello-world/intro.md
@@ -0,0 +1 @@
Welcome to your first Katacoda Scenario!
7 changes: 7 additions & 0 deletions hello-world/step1.md
@@ -0,0 +1,7 @@
This is your first step.

## Task

This is an _example_ of creating a scenario and running a **command**

`echo 'Hello World'`{{execute}}

0 comments on commit 0ecc05a

Please sign in to comment.