All Projects → charleyw → Wechat Weapp Redux Todos

charleyw / Wechat Weapp Redux Todos

Licence: mit
微信小程序,集成redux

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Wechat Weapp Redux Todos

Dva Wxapp
微信小程序的dva集成
Stars: ✭ 183 (-24.69%)
Mutual labels:  weapp
Nxdc Milktea
一套仿奈雪の茶小程序的前端模板
Stars: ✭ 198 (-18.52%)
Mutual labels:  weapp
Weapp
🐧 微信小程序组件和功能封装,基于微信Component自定义组件开发
Stars: ✭ 235 (-3.29%)
Mutual labels:  weapp
Wxapp Webpack Plugin
📦 微信小程序 webpack 插件
Stars: ✭ 185 (-23.87%)
Mutual labels:  weapp
Chronus
🕐 一款能帮助管理生活目标的微信小程序
Stars: ✭ 195 (-19.75%)
Mutual labels:  weapp
Wechat Weapp Mobx
微信小程序(wechat weapp) mobx 绑定, 跨页面通信的利器, 现已发布npm包
Stars: ✭ 208 (-14.4%)
Mutual labels:  weapp
Weapp Jump
跳一跳 小程序 源码
Stars: ✭ 173 (-28.81%)
Mutual labels:  weapp
Wechat web devtools
微信开发者工具(微信小程序)linux完美支持
Stars: ✭ 2,664 (+996.3%)
Mutual labels:  weapp
Frontend Series
📚 大前端的工程实践:iOS 篇 | Android 篇 | 混合式开发篇 - ReactNative、Weex、Weapp
Stars: ✭ 197 (-18.93%)
Mutual labels:  weapp
Weapp Ssha
企业官网 小程序 源码
Stars: ✭ 233 (-4.12%)
Mutual labels:  weapp
Weapp Mark
🔥 豆瓣类影视查询记录小程序,附学习笔记
Stars: ✭ 187 (-23.05%)
Mutual labels:  weapp
Xing Weapp Component
微信小程序基础组件扩展
Stars: ✭ 192 (-20.99%)
Mutual labels:  weapp
Wxa Plugin Canvas
小程序海报组件-生成朋友圈分享海报并生成图片
Stars: ✭ 2,692 (+1007.82%)
Mutual labels:  weapp
Leshare Shop Weapp
基于微信小程序的电商平台,采用原生框架开发
Stars: ✭ 183 (-24.69%)
Mutual labels:  weapp
Weapp Hiapp
HiApp 微信小程序版
Stars: ✭ 236 (-2.88%)
Mutual labels:  weapp
We Validator
💯 简单灵活的表单验证插件,支持小程序、浏览器以及Nodejs端使用
Stars: ✭ 180 (-25.93%)
Mutual labels:  weapp
Weapp Demo
微信小程序示例教程,案例涉及某瓣,所以下线了:https://github.com/zce/weapp-douban
Stars: ✭ 2 (-99.18%)
Mutual labels:  weapp
Weapp Workflow
基于Gulp 的微信小程序前端开发工作流 💯
Stars: ✭ 241 (-0.82%)
Mutual labels:  weapp
Welcropper
welCropper 微信小程序截图工具
Stars: ✭ 236 (-2.88%)
Mutual labels:  weapp
Vant Weapp
轻量、可靠的小程序 UI 组件库
Stars: ✭ 15,428 (+6248.97%)
Mutual labels:  weapp

微信小程序集成Redux实现的Todo list

在微信小程序中使用Redux实现Todo list,同时集成了redux-devtools

remote-redux-devtools

使用了我自己写的小程序的Redux绑定库:wechat-weapp-redux

使用

导入到微信的开发工具目录指向src运行就可以了。

开启redux-devtools

需要打开小程序开发工具的配置中项目->基础信息->开发环境不校验请求域名以及 TLS 版本

weapp-config

  1. 把本项目根目录下的libs拷贝到src/libs
  2. 修改src/configureStore, 改成这样:
const {createStore, compose} = require('./libs/redux.js');
const devTools = require('./libs/remote-redux-devtools.js').default;
const reducer = require('./reducers/index.js')

// function configureStore() {
//   return createStore(reducer);
// }
function configureStore() {
  return createStore(reducer, compose(devTools({
    hostname: 'localhost',
    port: 5678,
    secure: false
  })));
}

module.exports = configureStore;
  1. 本地安装remotedev-server并启动

    npm install -g remotedev-server
    remotedev --hostname=localhost --port=5678
    
  2. 浏览器中访问localhost:5678 如果不能访问,可以尝试使用**http://remotedev.io/local/**,打开后点击下面的setting,设置使用本地的server。

Todos

  • 集成redux-undo
  • 集成redux-persist

Liscense

© 2016 Wang Chao. This code is distributed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].