Skip to content
Robyn Overstreet edited this page Feb 2, 2015 · 58 revisions

Now that we have a sense of how a basic server works, we're going to work on the files we serve. We won't be doing much in Node and Servi; we're going to turn our attention to HTML and CSS.

The only thing we'll need our server to do this week is serve static files. In Servi, that's basically one line of code:

serveFiles("nameOfFolder");

Where "nameOfFolder" is a folder where you'll store the HTML, CSS, and images you want to serve. For a step by step example, see the code sample in the repo.

Clone this wiki locally