mirror of
https://github.com/Hopiu/bleuguide.git
synced 2026-05-11 09:13:09 +00:00
14 lines
No EOL
309 B
JavaScript
14 lines
No EOL
309 B
JavaScript
var express = require( 'express' );
|
|
app = express();
|
|
|
|
app.get( '/', function( req, res ) {
|
|
console.log( 'Hello World' );
|
|
res.send( 'Hello World' );
|
|
});
|
|
|
|
app.use( express.static( './client' ) );
|
|
|
|
exports.init = function( port ) {
|
|
console.log( 'Starting to listen on port ' + port );
|
|
app.listen( port );
|
|
}; |