{"id":13649583,"url":"https://github.com/charleyw/wechat-weapp-redux-todos","last_synced_at":"2025-04-22T14:32:12.931Z","repository":{"id":48020605,"uuid":"69447197","full_name":"charleyw/wechat-weapp-redux-todos","owner":"charleyw","description":"微信小程序，集成redux","archived":false,"fork":false,"pushed_at":"2022-12-07T12:18:30.000Z","size":2839,"stargazers_count":249,"open_issues_count":16,"forks_count":92,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-11-10T00:33:09.960Z","etag":null,"topics":["redux-devtools","weapp","wechat-weapp-redux"],"latest_commit_sha":null,"homepage":null,"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/charleyw.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}},"created_at":"2016-09-28T09:20:20.000Z","updated_at":"2024-02-24T02:40:29.000Z","dependencies_parsed_at":"2023-01-24T17:00:52.387Z","dependency_job_id":null,"html_url":"https://github.com/charleyw/wechat-weapp-redux-todos","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/charleyw%2Fwechat-weapp-redux-todos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charleyw%2Fwechat-weapp-redux-todos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charleyw%2Fwechat-weapp-redux-todos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charleyw%2Fwechat-weapp-redux-todos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charleyw","download_url":"https://codeload.github.com/charleyw/wechat-weapp-redux-todos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250259131,"owners_count":21401045,"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":["redux-devtools","weapp","wechat-weapp-redux"],"created_at":"2024-08-02T02:00:20.474Z","updated_at":"2025-04-22T14:32:07.900Z","avatar_url":"https://github.com/charleyw.png","language":"JavaScript","funding_links":[],"categories":["Demo","开源项目","Uncategorized"],"sub_categories":["Uncategorized","数据接口有问题"],"readme":"\n微信小程序集成Redux实现的Todo list\n======================\n在微信小程序中使用[Redux](https://github.com/reactjs/redux)实现Todo list，同时集成了redux-devtools\n\n![remote-redux-devtools](./remote-redux-devtools.gif)\n\n使用了我自己写的小程序的Redux绑定库：[wechat-weapp-redux](https://github.com/charleyw/wechat-weapp-redux)\n\n### 使用\n\n导入到微信的开发工具目录指向`src`运行就可以了。\n\n### 开启redux-devtools\n\n**需要打开小程序开发工具的配置中`项目`-\u003e`基础信息`-\u003e`开发环境不校验请求域名以及 TLS 版本 `**\n\n![weapp-config](./weapp-config.png)\n\n1. 把本项目根目录下的libs拷贝到`src/libs`中\n2. 修改`src/configureStore`, 改成这样:\n```\nconst {createStore, compose} = require('./libs/redux.js');\nconst devTools = require('./libs/remote-redux-devtools.js').default;\nconst reducer = require('./reducers/index.js')\n\n// function configureStore() {\n//   return createStore(reducer);\n// }\nfunction configureStore() {\n  return createStore(reducer, compose(devTools({\n    hostname: 'localhost',\n    port: 5678,\n    secure: false\n  })));\n}\n\nmodule.exports = configureStore;\n```\n\n1. 本地安装remotedev-server并启动\n\n   ```shell\n   npm install -g remotedev-server\n   remotedev --hostname=localhost --port=5678\n   ```\n\n2. 浏览器中访问**localhost:5678**\n 如果不能访问，可以尝试使用**http://remotedev.io/local/**，打开后点击下面的setting，设置使用本地的server。\n\n### Todos\n* 集成redux-undo\n* 集成redux-persist\n\n\n## Liscense\n\n© 2016 Wang Chao. This code is distributed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharleyw%2Fwechat-weapp-redux-todos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharleyw%2Fwechat-weapp-redux-todos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharleyw%2Fwechat-weapp-redux-todos/lists"}