Index āŗ 1. Static HTML
Make your first static āHello, world!ā Kitten page using plain old HTML.
Topics covered
- How to run Kitten.
- The basics of how to use the Kitten server in development.
- How to create a static HTML page.
- Hot reload.
Letās quickly create and test your first āHello, world!ā Kitten site.
Create a directory for the example and enter it:
mkdir kitten-playground cd kitten-playgroundIn a separate terminal pane, tab, or window, run Kitten in the same folder:
kittenWhen you run
kittenwithout any arguments, it defaults to serving the current directory. You can also specify a path as the first argument (kitten [path to serve]) to serve a different directory than the one youāre currently in.Now hit https://localhost in your browser and notice that Kitten gives you a
404: Page not found.error.This makes sense as we havenāt created any pages yet. Keep an eye on your browser as we fix that in the next step.
Create a file called index.html, add the following content to it, and save it:
<h1>Kitten</h1> <p>š±ļø</p>Notice that when you save it, the page in the browser automatically reloads with your content (this is known as āhot reloadā and it helps you preview the results of your edits in near realtime while making Kitten apps).

Look, itās a Kitten!
So weāve seen how Kitten happily serves any HTML you throw at it just like any good web server should.
But you can render HTML using any old web serverā¦
Letās start doing things no other web server can do, shall we?
Next tutorial: Dynamic Pages