Compare commits

..

1 Commits

Author SHA1 Message Date
75db56fedd 1
555

Signed-off-by: lxbfYeaa <lxbfyeaa@noreply.git.gogec.cn>
2026-04-12 23:23:23 +00:00
2 changed files with 0 additions and 24 deletions

0
backEnd/README.md Normal file
View File

View File

@@ -1,24 +0,0 @@
require("module-alias/register"); // 别名加载
import express from "express";
import bodyParser from "body-parser";
import routerIndex from "./src/router/index";
import { createConnection } from "typeorm";
import cors from "cors";
const app = express();
const port = 8101;
createConnection().then(() => {
console.log("数据库连接成功!");
app.listen(port, () => {
console.log(`开始监听${port}`);
});
});
app.use(bodyParser.urlencoded({ extended: true })); // 进行url解码
app.use(bodyParser.json());
app.use(cors());
// 匹配接口路由
app.use("/", routerIndex);