Awesome
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)
npm install
npm run webpack-devserver
(wait until build is ready, it will create file "etc/webpack-assets.json")npm run nodemon
(in another terminal, and wait until build is ready)- open http://localhost:3001
About the application
Watch the video:
<a href="http://www.youtube.com/watch?feature=player_embedded&v=eiougg2UhYA " target="_blank"><img src="http://img.youtube.com/vi/eiougg2UhYA/0.jpg" alt="IMAGE ALT TEXT HERE" width="480" height="320" border="10" /></a>
Solved problems:
- How to deal with routing.
- How do we deal with data fetching.
- How to share the same configuration. (And do not bundle it)
- How to import css in your react components. Inline CSS (why not Radium, Material-UI)
- How to deal with css. It should be loaded before html and splitted out.
- Working with history (Invariant Violation: Browser history needs a DOM)
- How to deal with I18N.
- How to deal with long term assets caching
Post from Viktor Turskyi (aka koorchik) which describes all the ideas in details.
How to contribute?
-
Bug reports (pull requests) and ideas how to deal with isomorphic issues are welcome.
-
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.
-
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 https://webbylab.com/contacts
- It's Quiz
WORK on Dockerfile (gitlab registry)
docker build -t registry.gitlab-ee.webbylab.com/itsquiz/itsquiz/apps/itsquiz-wall .
build imagedocker push registry.gitlab-ee.webbylab.com/itsquiz/itsquiz/apps/itsquiz-wall
push image on remoute registry
WORK on Dockerfile (cloud run registry)
docker build -t europe-west3-docker.pkg.dev/itsquiz-1041/itsquiz-wall/itsquiz-wall .
build imagedocker push europe-west3-docker.pkg.dev/itsquiz-1041/itsquiz-wall/itsquiz-wall
push image on remoute registry
RUN in CONTAINER
npm run docker:start
run latest versiondocker run -dp 3001:3001 registry.gitlab.webbylab.com/itsquiz/itsquiz/apps/itsquiz-wall:${x.x.x}
run a specific tag