Skip to content

Latest commit

 

History

History

with-serve-static

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Example: Serve Static

Tiny example that illustrates how to use the popular serve-static middleware from Express.

The public directory (configurable) contents are served by Polka as static assets.

All photos are fetched from Unsplash via the public/app.js script.

Setup

$ npm install
$ npm start

Usage

Open a browser to localhost:3000!