# node-server **Repository Path**: vivi2021/node-server ## Basic Information - **Project Name**: node-server - **Description**: 用 node 实现的静态服务器 - **Primary Language**: TypeScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-12-09 - **Last Updated**: 2022-12-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: Nodejs ## README # 静态服务器 ## 实现的功能: * 根据 url 返回不同的文件 * 处理查询参数 * 处理不存在的文件 * 处理非 GET 请求 * 添加缓存选项 # 如何测试 ## 安装 `yarn global add ts-node-dev` ## 使用ts-node支持TS的Node运行环境 ``ts-node-dev index.ts`` ## 使用浏览器进行测试