This is a (React + Redux + Router + isomorphic + SASS/SCSS + webpack + nodejs + koa2) starter kit, base from react-redux-starter-kit. It saves your time in construct a base runnable suit.
clone project: git clone https://github.com/windsome/one.git
/server
contains server side code./src
contains client side code./bin /config /build
, contains build code./doc
contains more doc. read more tips
same as original react-redux-starter-kit.
cd one
npm install #(in china, when install scss-node, may face a timeout problem, you can use taobao mirror. see [cnpm](doc/tip_cnpm.md) )
npm start
then, you can open browser, and visit http://localhost:3000 。 For preview, you can visit http://mp.qingshansi.cn/coin using wechat browser.
same as original react-redux-starter-kit.
npm install
npm run deploy:prod
npm run startprod
difference with original react-redux-starter-kit.
npm install
npm run deploy:prod
# compile servercode to /sdist.
npm run deploy:prodserver
# run from sdist
npm run startprod2
前端代码位于 src/routes/Coin, 后端使用post存储商品信息,order存储订单信息,每个商品对应的抽奖信息(抽奖随机数,抽中序号,应该放在postmeta表中),见 一元夺宝