# nodeServer **Repository Path**: stardust_wind/node-server ## Basic Information - **Project Name**: nodeServer - **Description**: 用node搭建的服务器 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-03-11 - **Last Updated**: 2025-08-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: Node, backend ## README ## 服务器使用说明 > 如何搭建"本地静态服务器" 和 "api接口" 1. 在public目录下存放"静态资源"文件 2. 运行服务器: 在命令行里面打开: ``` node index //运行后打开了 2048 端口 localhost:2048 可以访问到 public目录下的文件,默认index文件 ``` ![](https://img-blog.csdnimg.cn/20210617213055574.png) 3. 安装utools内网穿透(如果需要你的静态网页能够发布到互联网上) utools官网:https://u.tools/ 然后搜索内网穿透插件: ![](https://img-blog.csdnimg.cn/20210617214445131.png?) 4. 内网穿透 ,按使用说明使用,棒棒哒,不过是http协议,没有进行安全加密(安全加密需要去购买证书的)。 5. 如果需要搭建api的话需要在index和router目录下进行配置,有点麻烦,还要涉及数据库的东西,匿了。