# Wind Blowing Client **Repository Path**: ordinaryAnton/wind-blowing-cli ## Basic Information - **Project Name**: Wind Blowing Client - **Description**: 基于Vue3的利用移动端传感器数据的可持续训练的用户健康建议的分布式系统(客户端) - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-26 - **Last Updated**: 2024-07-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # wind-blowing-cli 本项目基于 vue.js 3 开发,负责: 1. 收集客户端传感器数据 2. 调用深度神经网络模型(基于 Transformer Lite) 3. 向服务端反馈用户数据 4. 从服务端下载神经网络模型并更新 项目可以通过 HbuilderX 进行打包,在Android端运行 ## Develop 在浏览器端想要获取移动端数据必须通过 https 进行访问,你需要在 vite.config.js 中配置你的CA 证书 另外由于在 npm dev 服务器上开发存在跨域访问的问题,必须使用vite.config.js 中配置的代理,因此获取请求地址的方式有所不同,您可以参考以下图片的注释,在哪个环境运行就解注释哪个环境的返回值: `src/config.js` ```js export class ServerConfig { static host = "192.168.43.61"; static port = "8888"; static GetURL(store, app_api) { let state = store.state; // 移动端WebView环境下使用 return `https://${state.currentServer.host}:${state.currentServer.port}/${app_api}` // npm dev 环境下使用 // return `/api/${app_api}` } } ``` ## Recommended IDE Setup [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). ## Customize configuration See [Vite Configuration Reference](https://vitejs.dev/config/). ## Project Setup ```sh npm install ``` ### Compile and Hot-Reload for Development ```sh npm run dev ``` ### Compile and Minify for Production ```sh npm run build ``` ### Lint with [ESLint](https://eslint.org/) ```sh npm run lint ```