浏览代码

Корневой файл сервера

Book Pauk 6 年之前
父节点
当前提交
40dbdb263c
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      server/index.js

+ 10 - 0
server/index.js

@@ -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");
+});