{"id":16429580,"url":"https://github.com/stbui/stbui-weex-app","last_synced_at":"2026-05-17T01:47:43.833Z","repository":{"id":83892498,"uuid":"96894562","full_name":"stbui/stbui-weex-app","owner":"stbui","description":null,"archived":false,"fork":false,"pushed_at":"2017-08-09T05:29:54.000Z","size":5934,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T08:17:23.562Z","etag":null,"topics":["android","ios","native","weex"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stbui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-11T13:12:56.000Z","updated_at":"2017-12-28T10:44:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ee982fd-4168-43bc-9184-ca939fb65942","html_url":"https://github.com/stbui/stbui-weex-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stbui/stbui-weex-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fstbui-weex-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fstbui-weex-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fstbui-weex-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fstbui-weex-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stbui","download_url":"https://codeload.github.com/stbui/stbui-weex-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stbui%2Fstbui-weex-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264951610,"owners_count":23687974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","ios","native","weex"],"created_at":"2024-10-11T08:23:33.328Z","updated_at":"2026-05-17T01:47:43.778Z","avatar_url":"https://github.com/stbui.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# weex demo app\n\n首个使用 Weex 和 Vue 开发的原生应用。\n\n## 预览\n\n用 [Weex Playground App](https://weex.apache.org/playground.html) 扫描下方二维码即可。\n\n![demo](dist/qrcode.png)\n\n\u003e 二维码地址：\nhttps://stbui.github.io/stbui-weex-app/?dd_wx_tpl=https://stbui.github.io/stbui-weex-app/dist/index.weex.js\n\n![demo](dist/demo.png)\n\n## 编译项目文件\n\n安装依赖：\n\n```\nnpm install\n```\n\n编译代码：\n\n```bash\n# 生成 Web 平台和 native 平台可用的 bundle 文件\n# 位置：\n# dist/index.web.js\n# dist/index.web.js\nnpm run build\n\n# 监听模式的 npm run build\nnpm run dev\n```\n\n拷贝 bundle 文件：\n\n```bash\n# 将生成的 bundle 文件拷贝到 Android 项目的资源目录\nnpm run copy:android\n\n# 将生成的 bundle 文件拷贝到 iOS 项目的资源目录\nnpm run copy:ios\n\n# run both copy:andriod and copy:ios\nnpm run copy\n```\n\n### 启动 Web 服务\n\n```\nnpm run serve\n```\n\n启动服务后会监听 1337 端口，访问 http://127.0.0.1:1337/index.html 即可在浏览器中预览页面。\n\n### 启动 Android 项目\n\n首先应该安装 [Android Studio](https://developer.android.com/studio/index.html) 和必要的 Android SDK，配置好基本的开发环境。\n\n使用 Android Studio 打开 `android` 目录中的项目，等待自动安装完依赖以后，即可启动模拟器或者真机预览页面。\n\n### 启动 iOS 项目\n\n首先应该配置好 [iOS 开发环境](https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppStoreDistributionTutorial/Setup/Setup.html) 并且安装 [CocoaPods](https://guides.cocoapods.org/using/getting-started.html) 工具。\n\n进入 `ios` 目录，使用 CocoaPods 安装依赖：\n\n```\npod install\n```\n\n使用 Xcode 打开 `ios` 目录中的项目（`HackerNews.xcworkspace`），然后即可启动模拟器预览页面。\n\n\u003e 注：如果想要在真机上查看效果，还需要配置开发者签名等信息。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstbui%2Fstbui-weex-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstbui%2Fstbui-weex-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstbui%2Fstbui-weex-app/lists"}