# fix.im **Repository Path**: humancloud/fix.im ## Basic Information - **Project Name**: fix.im - **Description**: webRTC远程交流 - **Primary Language**: NodeJS - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-12-31 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # bokk.io > A Vue.js project ## Build Setup ``` bash # install dependencies npm install # serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build # run unit tests npm run unit # run e2e tests npm run e2e # run all tests npm test ``` For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). # 配置说明 ## config目录 > index.js ``` assetsPublicPath:实际发布的url路径 index:入口html文件路径 assetsRoot:编译输出目录 assetsSubDirectory:编译后的静态文件目录 ``` ## build目录 > build.js ``` cp('-R', 'ui/static/*', assetsPath)是将指定的静态目录文件对称拷贝到发布路径下 ``` > dev-server.js app.use(staticPath, express.static('./ui/static'))是将指定的静态目录文件直接发布到url路径static下 # 调试说明 ## 服务端运行 > F5 ## 客户端编译 > CTRL + R , build ## 客户端调试 > CTRL + R , dev *** # HTTPS相关说明 ## 必要 > 由于各操作系统和浏览器的安全标准不太一致,但都支持HTTPS服务下的webrtc,所以服务器最好架设为https服务 ## 方法 ### 服务器OpenSSL * 下载[OpenSSL源码](https://www.openssl.org/) * 安装vs VC++ * 安装[Perl](http://downloads.activestate.com/ActivePerl/releases/5.24.0.2400/ActivePerl-5.24.0.2400-MSWin32-x64-300558.exe) * 安装[NAMS](http://www.nasm.us) 手动添加系统环境变量nams的Bin目录 * 以管理员身份运行cmd;cd到openssl源码目录,运行 ``` bash %vcBinPath%/vcvarsall.bat perl Configure VC-WIN32 | VC-WIN64A | VC-WIN64I nmake nmake test nmake install ``` * 系统环境变量增加编译安装后的openssl bin路径 > *或者直接下载第三方编译好的版本,当然安全性就要差一些了 [OpenSSL wiki](https://wiki.openssl.org/index.php/Binaries)上有推荐, 比较好的有[slproweb](https://slproweb.com/products/Win32OpenSSL.html)发布的*