• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

kimjuny/koa-react-universal: lightweight React-Koa2 universal boilerplate, only ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

kimjuny/koa-react-universal

开源软件地址:

https://github.com/kimjuny/koa-react-universal

开源编程语言:

JavaScript 84.2%

开源软件介绍:

Koa React Universal

Greenkeeper badge Build Status Code Climate Test Coverage

koa2、react、react-universal-component、koa-webpack-server、async/await、code-splitting、hot-module-replacement、react-router4、redux-thunk

This project is dedicated to build simple yet powerful Koa-React-Universal boilerplate.

Less is More: All key ingredients are in src/developmentsrc/production and webpack configurations, easy to understand、set-up and extend. We promise to use the most recent & official packages(as much as we can), no weird or tricky stuffs, keeping this project clean and fully customizable.

Fully functional: HMR for client and server side, code splitting for both javascript and css, async/await universal programming support for koa2 server-side and redux-thunk client-side...

Universal: We are using react-universal-componentwebpack-flush-chunks. It simplifies universal development with code-splitting(js、css) and is also compatible with the latest react-router-v4.

Production: We are using webpack to build client(target: web) and server(target: node).

Development: We are using koa-webpack-server (which simplifies development env set-ups), it also webpacks client and server(with client & server hot-load), so we can stay as much as the same with production.

Screenshots

DEMO: Search Github Repositories.

Noted: Github search API has Rate Limitation of 10 reqs/min (without credentials).

record

Components

  • koa2
  • react
  • react-router4
  • redux-thunk
  • react-universal-component
  • es2015 + async/await
  • less、postcss(autoprefixer)
  • webpack
  • koa-webpack-server
  • webpack-flush-chunks
  • axios
  • ejs
  • jest
  • eslint(airbnb)
  • docker
  • wallaby

Roadmap

  • graphql(Github API v3 -> v4)
  • flow
  • enzyme
  • immutable
  • vendor

Start

Prerequisites

development

  • yarn / npm
  • node ≥ 7.0

production

  • docker ≥ 1.13

Production

yarn prod

or with docker

docker build -t koa-react-universal .
docker run -d -p 3006:3006 koa-react-universal

Development

yarn dev

Test

yarn test

also supports wallaby.js live test reports view

CMD + SHIFT + R -> R (vscode)

License

MIT

Contributing

Issues are welcome :)

PRs are welcome (if you can help to make things more concise and simple!).




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap