// Set up Express
var express = require('express');
var app = express();
// Serve static assets from both 'public' and 'files' directory
app.use(express.static('public');
app.use(express.static('files');
// Start Express server
app.listen(3030);
// Set up Express
var express = require('express');
var app = express();
// Specify mount path, '/static', for the static directory
app.use('/static', express.static('public'));
// Start Express server
app.listen(3030);
// Set up Express
var express = require('express');
var app = express();
// Serve files from the absolute path of the directory
app.use(express.static(__dirname + '/public'));
// Start Express server
app.listen(3030);
// Set up Express
var express = require('express');
var app = express();
/* Serve from the absolute path of the directory that you want to serve with a
*/ virtual path prefix
app.use('/static', express.static(__dirname + '/public'));
// Start Express server
app.listen(3030);