OpenAuth.Net/newdocs/docs/notes/mobile/start.md
2025-05-29 17:28:53 +08:00

28 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 快速开始
createTime: 2025/05/29 23:43:26
permalink: /mobile/start/
---
## 工具准备
#### HBuilderX
下载最新版的HBuilderX最新版可以下载Cursor、Windsurf、Trae等工具配合开发效果更佳用来作为OpenAuth.Net移动版的开发工具。
## 源码下载
根据授权文件的下载指示,下载移动版源码。
![2025-04-08-20-53-49](http://img.openauth.net.cn/2025-04-08-20-53-49.png)
## 创建数据库
* 新建一个空数据库OpenAuthPro。使用上一步下载的【sql脚本】文件夹根据你的数据库类型选择运行你需要的脚本`Sql Server脚本.sql`或`mysql脚本.sql`
## 启动后端
启动后端请参考:[快速开始](/core/start/)
## 启动前端
使用HBuilderX打开openauthapp文件夹修改配置文件`config.js`对应的后端接口地址,调整为自己的接口地址:
```javascript
VITE_BASE_API = http://localhost:52789/api
```
直接点击HBuilderX的运行按钮即可启动前端
![2025-05-29-17-09-49](http://img.openauth.net.cn/2025-05-29-17-09-49.png)
启动成功后,使用浏览器访问[http://localhost:5173/](http://localhost:5173/) 即可打开UniApp版界面
![2025-05-29-00-24-46](http://img.openauth.net.cn/2025-05-29-00-24-46.png)