@renbaoshuo's local development environment [click to expand]
Updated at Oct 24, 2024.
- Develop machine: Intel(R) Core(TM) Ultra 9 185H, 64 GiB RAM
- Operating system: Windows 11 Pro 23H2 (22631.4317)
Software or tool name | Version |
---|---|
Node.js | 20.14.0 |
Android Studio | 2024.1.2 (Koala Feature Drop) |
Android SDK | 33 (Android 13.0) |
NDK | 26.1.10909125 |
OpenJDK | 17.0.13+11 (winget Microsoft.OpenJDK.17) |
Android Studio Emulator | Pixel 8 Pro API 33 (Android 13.0, x86_64) |
Before you start, make sure you have Node.js, Yarn, and Android Studio installed on your computer.
Then create an Android Studio emulator, you can follow the instructions in the Expo documentation.
After you have installed the required software, you can start developing the app.
Clone the repository and install dependencies:
git clone https://github.com/renbaoshuo/fzuhelper-app.git
cd fzuhelper-app
yarn install
Start the app:
yarn start
In the output, you'll find options to open the app in a
- development build
- Android emulator
- iOS simulator
- Expo Go, a limited sandbox for trying out app development with Expo
You can start developing by editing the files inside the app directory. This project uses file-based routing.
已有 Apifox 接口文档,生成请求client,推荐后端给每个接口都打上 tags,不要使用 apifox 的 API文档目录 作为 tags
- 打开 Apifox 桌面客户端
- 选择需要查阅 API 文档的服务,点击进入
- 点击服务左侧工具栏目中的 项目设置
- 点击 导出数据
- 选择 OpenAPI Spec 版本:OpenAPI3.0 ,文件格式:JSON,包含 Apifox 扩展的 OpenAPI 字段(x-apifox-***):包含,将 API 文档的目录,作为 Tags 字段导出:否
- 点击 打开URL 按钮,会生成类似以下的临时的接口文档链接:http://127.0.0.1:4523/export/openapi/2?version=3.0
- 修改 openapi-ts-request.config.ts 文件中的schemaPath为上面的链接
- 运行 yarn run openapi 自动生成请求代码