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.
14 lines
324 B
14 lines
324 B
8 years ago
|
/*eslint no-console:0 */
|
||
|
'use strict';
|
||
|
const express = require('express');
|
||
|
const open = require('open');
|
||
|
const fs=require("fs");
|
||
|
const app = express();
|
||
|
const port = 3000;
|
||
|
|
||
|
app.use(express.static("./"));
|
||
|
app.listen(port, function() {
|
||
|
console.log("server start");
|
||
|
open('http://localhost:' + port + '/index.html');
|
||
|
});
|