You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
390 B
18 lines
390 B
const path = require('path');
|
|
const express = require('express');
|
|
|
|
const app = express();
|
|
|
|
app.get('/',function(req,res){
|
|
res.sendFile(path.join(__dirname,'moduleTest.html'));
|
|
});
|
|
|
|
app.use(express.static(__dirname + '/js'));
|
|
|
|
app.listen('3000','0.0.0.0',function(err){
|
|
if(err){
|
|
console.log(err);
|
|
return;
|
|
}
|
|
console.log('Listening at http://0.0.0.0:3000');
|
|
});
|