{"id":19725448,"url":"https://github.com/easychen/lianmilite","last_synced_at":"2025-04-29T23:30:47.670Z","repository":{"id":145559101,"uuid":"170951711","full_name":"easychen/lianmilite","owner":"easychen","description":"莲米粒是一个基于PHP+MySQL+微信小程序技术栈的、拥有用户登入、发布、修改、删除和转发信息、以及私信聊天模块的信息流应用。","archived":false,"fork":false,"pushed_at":"2019-08-26T02:13:48.000Z","size":5368,"stargazers_count":236,"open_issues_count":0,"forks_count":36,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-05T20:11:14.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/easychen.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}},"created_at":"2019-02-16T01:58:01.000Z","updated_at":"2025-02-27T09:42:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"650fabb0-dc14-4134-a5fa-36028e3176ee","html_url":"https://github.com/easychen/lianmilite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Flianmilite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Flianmilite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Flianmilite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Flianmilite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easychen","download_url":"https://codeload.github.com/easychen/lianmilite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251599742,"owners_count":21615574,"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":[],"created_at":"2024-11-11T23:29:57.311Z","updated_at":"2025-04-29T23:30:47.663Z","avatar_url":"https://github.com/easychen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 莲米粒 🎈 LianmiLite\n\n\n莲米粒是一个基于PHP+MySQL+微信小程序技术栈的、拥有用户登入、发布、修改、删除和转发信息、以及私信聊天模块的信息流应用。\n\n[![Feature Requests](http://feathub.com/easychen/lianmilite?format=svg)](http://feathub.com/easychen/lianmilite)\n\n![](./lianmilite.gif)\n\n其目的有两个，首先是作为二次开发的基础项目。绝大部分应用、即使是工具类的，一旦用户变多以后，就会有添加私信和信息流系统的需求。你可以在这个系统上加上业务模块，很快的修改出一个可用的、带社会化属性的产品。\n\n其次，用于教学和演示。目前市面上的绝大部分小程序教程，都只是找一个现成的API，主要讲解如何构建界面。莲米粒是一个同时实现了前后端的应用，不但包括了后端实现，更处理了微信用户和系统自有用户整合、自动登入等让新人棘手的流程，是一个不错的参考。希望能帮到大家。\n\n关于微信整体流程的讲解和开发细节，包含在[方糖全栈课2019版](http://quanzhanke.com)中。\n\n\n## 安装说明\n\n### 首先配置数据库\n1. 建立一个数据库，导入 `api/docs/lianmilite.sql`\n2. 打开 `api/config/database.php` , 填写数据库相关信息\n\n### 启动API\n\nAPI 需要rewrite。\n\n#### 本地测试时：\n1. `cd api`\n2. 创建 `config/hide.php`，内容为\n```\n\u003c?php\n$GLOBALS['lpconfig']['wechat_miniapp_id'] = '小程序appid';\n$GLOBALS['lpconfig']['wechat_miniapp_secret'] = '小程序appsecret';\n```\n3.启动测试服务器\n```php -S localhost:8000 route.php```\n注意要带 `route.php` 参数，不然不支持 rewrite。\n\n\n#### 线上部署时\n修改 `api/sample.htaccess` 为 `.htaccess` 后可用于 Apache 配置。\n\n### 小程序部分\n\n#### 启动\n用微信开发者工具打开 `mini` 目录，修改 `appid` 即可。\n\n#### 修改API接口地址\n如要修改API地址，打开`mini/app.js`修改最后一行。\n\n\n---\n\n# 机翻英文 | English intro that machine translated\n\n# 莲米粒 🎈 LianmiLite\n\nLianmiLite is a timeline application based on the PHP+MySQL+WeChat mini programe stack with user login, publish, modify, delete and retweet feed, and private message chat module.\n\n![](./lianmilite.gif)\n\nIts purpose is two, first of all as a basic project for secondary development. Most applications, even those of the tool category, will have the need to add private messages and timeline function once the number of users has increased. You can add business modules to this system and quickly modify a product that is available with social attributes.\n\nSecond, for teaching and presentation. Most of the small program tutorials on the market today are just looking for a ready-made API that explains how to build an interface. lianmilite is an application that realizes both front and back ends. It not only includes the back-end implementation, but also handles the process of making WeChat users and system users integrated, automatic login and so on. It is a good reference. I hope I can help you.\n\n## Installation Notes\n\n### First configure the database\n1. Create a database and import `api/docs/lianmilite.sql`\n2. Open `api/config/database.php` and fill in the database related information.\n\n### Launch API\n\nThe API requires rewrite.\n\n#### When testing locally:\n1. `cd api`\n2. Create `config/hide.php` with the content\n```\n\u003c?php\n$GLOBALS['lpconfig']['wechat_miniapp_id'] = 'small appid';\n$GLOBALS['lpconfig']['wechat_miniapp_secret'] = 'small appsecret';\n```\n3. Start the test server\n```php -S localhost:8000 route.php```\nNote that you should bring the `route.php` parameter, otherwise rewrite is not supported.\n\n\n#### Online deployment\nModify `api/sample.htaccess` to `.htaccess` for Apache configuration.\n\n### mini program\n\n#### start up\nOpen the `mini` directory with the WeChat Developer tool and modify `appid`.\n\n#### Modify API interface address\nTo modify the API address, open `mini/app.js` to modify the last line.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Flianmilite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasychen%2Flianmilite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Flianmilite/lists"}