Корневой файл сервера
This commit is contained in:
10
server/index.js
Normal file
10
server/index.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
var express = require('express');
|
||||||
|
var app = express();
|
||||||
|
|
||||||
|
app.get('/', function(req, res) {
|
||||||
|
res.send('hello world');
|
||||||
|
});
|
||||||
|
|
||||||
|
app.listen(3000, "0.0.0.0", function() {
|
||||||
|
console.log("server started");
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user