{"id":37806355,"url":"https://github.com/grandiloquent/wechat-yoga-miniprogram","last_synced_at":"2026-01-16T15:30:23.241Z","repository":{"id":56766510,"uuid":"517440124","full_name":"grandiloquent/wechat-yoga-miniprogram","owner":"grandiloquent","description":"一个专注于瑜伽约课的微信小程序。","archived":false,"fork":false,"pushed_at":"2023-11-19T23:59:45.000Z","size":14359,"stargazers_count":20,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-11-20T00:29:09.108Z","etag":null,"topics":["book-app","rust","rust-rocket","rust-webassembly","wechat","wechat-app","wechat-mini-program","yoga"],"latest_commit_sha":null,"homepage":"https://lucidu.cn","language":"JavaScript","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/grandiloquent.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}},"created_at":"2022-07-24T21:25:09.000Z","updated_at":"2023-10-31T11:06:14.000Z","dependencies_parsed_at":"2023-11-18T04:38:05.459Z","dependency_job_id":null,"html_url":"https://github.com/grandiloquent/wechat-yoga-miniprogram","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/grandiloquent/wechat-yoga-miniprogram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grandiloquent%2Fwechat-yoga-miniprogram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grandiloquent%2Fwechat-yoga-miniprogram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grandiloquent%2Fwechat-yoga-miniprogram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grandiloquent%2Fwechat-yoga-miniprogram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grandiloquent","download_url":"https://codeload.github.com/grandiloquent/wechat-yoga-miniprogram/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grandiloquent%2Fwechat-yoga-miniprogram/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["book-app","rust","rust-rocket","rust-webassembly","wechat","wechat-app","wechat-mini-program","yoga"],"created_at":"2026-01-16T15:30:22.342Z","updated_at":"2026-01-16T15:30:23.135Z","avatar_url":"https://github.com/grandiloquent.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 瑜伽约课微信小程序\n\n一个使用 Rust 开发的，用于瑜伽约课的微信小程序。\n\n该程序，包括后端服务器、数据库、浏览器管理员前端、微信小程序，再加上相关的架设和配置，有一定的复杂性。但同时也是一个训练开发能力的很好的项目。\n\n除一些敏感信息外，已公开包括数据库的所有代码。\n\n- [部署](/Deploy)\n- [后端服务器](/server)\n- [前端](/WebAssembly/weixin)\n- [设计资源](/资源)\n- [微信小程序数独游戏](/miniprogram/pages/sudoku)\n\n## 开发环境\n\n- 微信开发工具\n- Rust 语言\n- PostgreSQL 数据库\n\n## 微信小程序截图\n\n\u003cdiv\u003e\n\u003cimg width=\"250\" src=\"images/Screenshot_2023-05-17-09-57-55-794_com.tencent.mm.jpg\"\u003e\n\u003cimg width=\"250\" src=\"images/Screenshot_2023-05-17-09-58-05-692_com.tencent.mm.jpg\"\u003e\n\u003cimg width=\"250\" src=\"images/Screenshot_2023-05-17-09-58-13-044_com.tencent.mm.jpg\"\u003e\n\u003cimg width=\"250\" src=\"images/Screenshot_2023-05-17-09-58-20-265_com.tencent.mm.jpg\"\u003e\n\u003cimg width=\"250\" src=\"images/Screenshot_2023-05-17-09-58-29-621_com.tencent.mm.jpg\"\u003e\n\u003cimg width=\"250\" src=\"images/Screenshot_2023-05-17-09-58-34-452_com.tencent.mm.jpg\"\u003e\n\u003cimg width=\"250\" src=\"images/Screenshot_2023-05-17-09-58-45-529_com.tencent.mm.jpg\"\u003e\n\n\u003c/div\u003e\n\n### 课程表\n\n\u003cimg src=\"images/课程表.png\"\u003e\n\n## 本地运行\n\n1. 安装 [PostgreSQL](https://www.postgresql.org/download/)\n2. 安装 [Rust](https://www.rust-lang.org/tools/install)\n3. 安装 [微信开发者工具（稳定版 Stable Build）](https://developers.weixin.qq.com/miniprogram/dev/devtools/stable.html)\n\n## 后端\n\nWindows 系统 PowerShell 终端可使用如下命令启动后端服务器：\n\n```ps\n# 使用恰当的参数替换中文描述的内容\n$ENV:DATA_SOURCE_NAME=\"host=数据库公网IP port=数据库侦听端口 user=数据库用户名 password=数据库密码 dbname=数据库名称 sslmode=disable\";$ENV:AUTH_URL=\"https://api.weixin.qq.com/sns/jscode2session?appid=小程序Id\u0026secret=小程序密钥\u0026grant_type=authorization_code\u0026js_code=\";$ENV:SECRET=\"长度32的字符串\"; go run main.go\n```\n\n## PowerShell 命令行\n\n在开发中用到的，一些简化文件操作的 PowerShell 命令。\n\n```ps\n\n将当前目录切换为 Rust 模块所在的目录，然后创建单独的 Rust 源代码文件，最后获取该目录下的所有 Rust 源代码文件，进行过滤后，将其全部写入 mod.rs，以便在其他位置的代码可以使用该模块内的所有代码\n$dir=\"C:\\Users\\Administrator\\Desktop\\file\\yg\\server\\src\";$name=\"models\";$filename=\"settings.rs\";Set-Location $dir;New-Item -Type \"directory\" $name;Set-Location $name; New-Item mod.rs;New-Item $filename;Get-ChildItem | Where-Object {$_.Name -ne \"mod.rs\"} | Split-Path -LeafBase | Join-String -FormatString \"pub mod {0};`r`n\" | Set-Content -Path .\\mod.rs;` \n\n用于创建微信小程序页面文件夹，和其包含的 4 个同名文件\n$name=\"adminLesson\";$dir=\"C:\\Users\\Administrator\\Desktop\\file\\yg\\miniprogram\\pages\";Set-Location $dir;New-Item -Type \"directory\" $name;Set-Location $name;New-Item $name\".js\";New-Item $name\".wxml\";New-Item $name\".wxss\";New-Item $name\".json\";\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrandiloquent%2Fwechat-yoga-miniprogram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrandiloquent%2Fwechat-yoga-miniprogram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrandiloquent%2Fwechat-yoga-miniprogram/lists"}