{"id":20839308,"url":"https://github.com/ailln/miniprogram-template","last_synced_at":"2026-04-19T23:34:26.546Z","repository":{"id":52133593,"uuid":"216799736","full_name":"Ailln/miniprogram-template","owner":"Ailln","description":"📦 一个快速搭建「微信小程序」的模版！","archived":false,"fork":false,"pushed_at":"2024-09-03T15:21:56.000Z","size":10,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-28T13:22:40.007Z","etag":null,"topics":["flask","flask-application","miniprogram","minprogram-template","template","template-project"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ailln.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-10-22T11:42:39.000Z","updated_at":"2023-03-07T02:52:26.000Z","dependencies_parsed_at":"2022-09-05T12:30:51.260Z","dependency_job_id":null,"html_url":"https://github.com/Ailln/miniprogram-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/Ailln/miniprogram-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ailln%2Fminiprogram-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ailln%2Fminiprogram-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ailln%2Fminiprogram-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ailln%2Fminiprogram-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ailln","download_url":"https://codeload.github.com/Ailln/miniprogram-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ailln%2Fminiprogram-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32026711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["flask","flask-application","miniprogram","minprogram-template","template","template-project"],"created_at":"2024-11-18T01:13:15.943Z","updated_at":"2026-04-19T23:34:26.537Z","avatar_url":"https://github.com/Ailln.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Miniprogram Template\n\n📦 一个快速搭建「微信小程序」的模版！\n\n## 使用方法\n\n1. 点击本项目右上角的绿色按钮 `Use this template`（使用此模板），输入名称和说明，完成创建。\n\n2. 将刚刚创建好的项目克隆到本地，这里以本项目为例，实际操作时这里需要替换你自己的项目。\n\n    ```bash\n    git clone https://github.com/Ailln/miniprogram-template.git --depth 1\n    ```\n\n3. 安装环境依赖，启动后端。(本项目需要 Python 环境，如果对这部分不熟悉的看最后的参考文章)\n\n    ```bash\n    # 后端环境依赖安装\n    cd back\n    pip install -r requirements.txt\n\n    # 启动后端\n    python app.py\n    ```\n\n4. 使用「微信开发者工具」将 `miniprogram` 的目录导入进去即可预览。\n\n5. 根据你的需求修改代码。\n\n## 项目结构\n\n```\n.\n├── LICENSE\n├── README.md\n├── back\n│   ├── app.py\n│   └── requirements.txt\n└── miniprogram\n    ├── app.js\n    ├── app.json\n    ├── app.wxss\n    ├── pages\n    │   ├── index\n    │   │   ├── index.js\n    │   │   ├── index.json\n    │   │   ├── index.wxml\n    │   │   └── index.wxss\n    │   └── logs\n    │       ├── logs.js\n    │       ├── logs.json\n    │       ├── logs.wxml\n    │       └── logs.wxss\n    ├── project.config.json\n    ├── sitemap.json\n    └── utils\n        └── util.js\n```\n\n## 附加\n\n### 添加 WeUI\n\n1. 下载 [weui-wxss](https://github.com/Tencent/weui-wxss) 的代码，\n将 `dist` 目录拷贝到 `miniprogram-template/miniprogram/` 下面。\n\n2. 在 `app.wxss` 中全局引入，在第一行添加：\n\n    ```css\n    @import \"./dist/style/weui.wxss\";\n    ```\n\n3. 在wxml 中使用样式：\n\n    ```html\n    \u003cbutton class=\"weui-btn\" type=\"primary\"\u003e页面主操作\u003c/button\u003e\n    ```\n\n### 添加 iView Weapp\n\n1. 下载 [iView Weapp](https://github.com/TalkingData/iview-weapp) 的代码，\n将 `dist` 目录拷贝到 `miniprogram-template/miniprogram/` 下面。\n\n2. 在页面的 json 中配置需要使用的组件：\n\n    ```json\n    \"usingComponents\": {\n        \"i-button\": \"../../dist/button/index\"\n    }\n    ```\n\n3. 在 wxml 中使用组件:\n\n    ```html\n    \u003ci-button type=\"primary\"\u003e这是一个按钮\u003c/i-button\u003e\n    ```\n\n### 添加 Vant Weapp\n\n1. 下载 [Vant Weapp](https://github.com/youzan/vant-weapp) 的代码，\n将 `dist` 目录拷贝到 `miniprogram-template/miniprogram/` 下面。\n\n2. 在页面的 json 中配置需要使用的组件：\n\n    ```json\n    \"usingComponents\": {\n        \"van-button\": \"../../dist/button/index\"\n    }\n    ```\n\n3. 在 wxml 中使用组件:\n\n    ```html\n    \u003cvan-button type=\"primary\"\u003e这是一个按钮\u003c/van-button\u003e\n    ```\n\n## 许可\n\n[![](https://award.dovolopor.com?lt=License\u0026rt=MIT\u0026rbc=green)](./LICENSE)\n\n## 参考\n\n- [Flask document](https://dormousehole.readthedocs.io/en/latest/)\n- [如何安装 Python 开发环境？](https://v2ai.cn/linux/2018/04/29/LX-2.html)\n- [WeUI document](https://weui.io/)\n- [iView Weapp document](https://weapp.iviewui.com/)\n- [Vant Weapp document](https://youzan.github.io/vant-weapp/#/intro)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Failln%2Fminiprogram-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Failln%2Fminiprogram-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Failln%2Fminiprogram-template/lists"}