Create an app

Let's create a website with an empty filesystem to hold our project.

Then, create an app to hold our theme and make the root page of the website use it.

Create the following files with the provided file types:

PATH                 FILE TYPE
---------------------------------
/                    [/apps/page]    // This file already exists, just set its type
/apps
/apps/page           [app-1]
/apps/page/.Request  [sjs-4e]

Note that we have completely made up the names apps and page, they could be anything as long as the root file's type points to the correct path.

Then set the .Request file's body to the following:

<div class="wrapper">
    <div class="paper">
        <div class="menu">
            menu
        </div>
        <div class="contents">
            contents
        </div>
    </div>
</div>

This will show a minimal HTML layout without CSS applied (yet).

Go visit your root file and see that it displays the above HTML structure.

Let's add some CSS in the next step.

Subscribe to our newsletter!