-
Install connect and serve-static with NPM
$ npm install connect serve-static
-
Create server.js file with this content:
var connect = require('connect');
var serveStatic = require('serve-static');
connect().use(serveStatic(__dirname)).listen(8080); -
Run with Node.js
$ node server.js
No comments:
Post a Comment