Skip to content

Add LAN chat and fast file-transfer web app (Express + WebSocket)#1

Open
sun-dove wants to merge 1 commit intomainfrom
codex/create-repository-for-lan-chat-application
Open

Add LAN chat and fast file-transfer web app (Express + WebSocket)#1
sun-dove wants to merge 1 commit intomainfrom
codex/create-repository-for-lan-chat-application

Conversation

@sun-dove
Copy link
Owner

@sun-dove sun-dove commented Feb 6, 2026

Motivation

  • 新建一个轻量的局域网聊天与文件传输仓库,提供美观大气的暗色 UI 和基于局域网的快速文件传输能力以便在内网快速协作。

Description

  • 增加服务器实现 server.js,基于 express 提供静态页面与 /upload 文件上传接口,并用 ws 广播实时聊天与文件事件。
  • 使用 multer 将上传文件存储到 uploads 目录并通过 /downloads 静态路由提供下载链接。
  • 添加前端资源 public/index.htmlpublic/app.jspublic/styles.css,实现 WebSocket 聊天、拖拽/选择上传、上传状态与传输列表展示的现代化暗色界面。
  • 新增 package.jsonREADME.md.gitignore(忽略 node_modules/uploads/),并在服务器端启动时绑定 0.0.0.0:3000 以便局域网访问。

Testing

  • 运行 npm install 用于安装依赖时失败(npm registry 返回 403 Forbidden),因此未能完成依赖安装并无法运行 npm start 进行本地集成测试。

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant