This commit is contained in:
Ubuntu
2026-07-03 16:58:28 +08:00
commit 32b43f85bd
6240 changed files with 1987678 additions and 0 deletions
@@ -0,0 +1,23 @@
#!/usr/bin/env node
/**
* Uniapp Material Design项目开发服务器 - 增强版(包含文章列表)
* 绑定到所有IP地址,支持公网访问
*/
const express = require('express');
const cors = require('cors');
const path = require('path');
const fs = require('fs');
// 创建Express应用
const app = express();
const PORT = process.env.PORT || 8000;
const HOST = '0.0.0.0'; // 绑定到所有IP
// 启用CORS
app.use(cors());
// 解析JSON请求体
app.use(express.json());
app.use(express.urlencoded({ extended: true