- react
- react-router
- webpack
- babel for es7 support
- Global state managed(use umc)
- Custom dev server
- API proxy
- stylus style
- Base style to use
flex
box, like react-native. - Split app.js/app.css/vendor.js, and all with md5 hash name
- SSR(Server side render). Not fully tested. Not recommend to use it.
Run git clone
and npm i
- In
src/config/client
dir,cp defaults.js my.js
. Change my.js as you want - In
src/config/server
dir,cp defaults.js my.js
. Change my.js as you want
Add your own files in components
, store/routers
, styles
dirs.
Run npm run start-dev
and open browser with http://localhost:8083
(or your custom host&port).
Run npm run start
and open browser with http://localhost:8083
(or your custom host&port)
To enable and use SSR:
- Currently only support production environment
- Start with
ENABLE_SSR=true
(seenpm run start-ssr
script) - Make sure that the component has the static method
serverLoad
, which is used to get the initial state.
Licensed under MIT
Copyright (c) 2016 kiliwalk