18 lines
260 B
JavaScript
18 lines
260 B
JavaScript
/**
|
|
* Test Express with nexe
|
|
**/
|
|
|
|
console.log('express init');
|
|
|
|
var express = require('express');
|
|
|
|
var app = express();
|
|
|
|
app.get('/', function(req, res) {
|
|
res.send('It works!');
|
|
});
|
|
|
|
app.listen(8000, function() {
|
|
console.log('Listening on port 8000');
|
|
});
|