github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/docs/examples/example-nodejs-fileserver/server.js (about) 1 var express = require('express'); 2 var app = express(); 3 var directory = require('serve-index'); 4 5 app.use(express.static(__dirname+"/static")); 6 app.use(directory(__dirname+"/static")); 7 app.listen("8080");