itsquiz-wall

Isomorphic application written in React

  • 所有者: WebbyLab/itsquiz-wall
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Build Status

Isomorphic "Quiz Wall" for itsquiz.com

Motivation

There are a lot of tutorials and boilerplates showing how to write isomorphic ReactJs applications.
But when it comes to real world apps, you'll find that all the turorials do not cover problems that you face in productions apps.

In WebbyLab, we have a lot of projects written in react and several isomorphic projects. So, it was decided to develop one of these projects on github. So, everyone can see how real-world production isomorphic app can be implemented.

IMPORTANT: This is production app, and we develop it in this repo. So, it is always evolving.

You can find post from Viktor Turskyi (aka koorchik). Post describes all the ideas in details.

Installation (development)

  1. npm install
  2. cp etc/client-config.json.sample etc/client-config.json (by default connect to production REST API)
  3. npm run webpack-devserver (wait until build is ready, it will create file "etc/webpack-assets.json")
  4. npm run nodemon (in another terminal, and wait until build is ready)
  5. open http://localhost:3001

About the application

Watch the video:

Solved problems:

  1. How to deal with routing.
  2. How do we deal with data fetching.
  3. How to share the same configuration. (And do not bundle it)
  4. How to import css in your react components. Inline CSS (why not Radium, Material-UI)
  5. How to deal with css. It should be loaded before html and splitted out.
  6. Working with history (Invariant Violation: Browser history needs a DOM)
  7. How to deal with I18N.
  8. How to deal with long term assets caching

Post from Viktor Turskyi (aka koorchik) which describes all the ideas in details.

How to contribute?

  1. Bug reports (pull requests) and ideas how to deal with isomorphic issues are welcome.

  2. We were early adopters of ReactJs and use it from the moment facebook opensourced it. So, almost every project in our company is written in ReactJs.
    Contact us if you need help.

  3. It's Quiz is a great service and we use it in WebbyLab. Just give us feedback on it.

Architecture description (TODO)

Development guide and conventions (TODO)

Async actions:

{ type: 'FETCH_POSTS_REQUEST' }
{ type: 'FETCH_POSTS_FAILURE', error: 'Oops' }
{ type: 'FETCH_POSTS_SUCCESS', response: { ... } }

License

Thanks

Thanks for http://itsquiz.com (our customer) for allowing opensourcing of this app.

主要指标

概览
名称与所有者WebbyLab/itsquiz-wall
主编程语言JavaScript
编程语言Shell (语言数: 5)
平台
许可证MIT License
所有者活动
创建于2015-11-08 12:04:11
推送于2023-03-06 17:41:48
最后一次提交2022-07-22 17:56:34
发布数0
用户参与
星数521
关注者数34
派生数108
提交数683
已启用问题?
问题数32
打开的问题数16
拉请求数172
打开的拉请求数19
关闭的拉请求数22
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?