Git Product home page Git Product logo

itsquiz-wall's Introduction

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. npm run webpack-devserver (wait until build is ready, it will create file "etc/webpack-assets.json")
  3. npm run nodemon (in another terminal, and wait until build is ready)
  4. open http://localhost:3001

About the application

Watch the video:

IMAGE ALT TEXT HERE

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.

WORK on Dockerfile (gitlab registry)

  1. docker build -t registry.gitlab-ee.webbylab.com/itsquiz/itsquiz/apps/itsquiz-wall . build image
  2. docker push registry.gitlab-ee.webbylab.com/itsquiz/itsquiz/apps/itsquiz-wall push image on remoute registry

WORK on Dockerfile (cloud run registry)

  1. docker build -t europe-west3-docker.pkg.dev/itsquiz-1041/itsquiz-wall/itsquiz-wall . build image
  2. docker push europe-west3-docker.pkg.dev/itsquiz-1041/itsquiz-wall/itsquiz-wall push image on remoute registry

RUN in CONTAINER

  1. npm run docker:start run latest version
  2. docker run -dp 3001:3001 registry.gitlab.webbylab.com/itsquiz/itsquiz/apps/itsquiz-wall:${x.x.x} run a specific tag

itsquiz-wall's People

Contributors

krambertech avatar koorchik avatar timzekid avatar heops avatar fredddy123 avatar yaroslav-lototskyi avatar drchikoze avatar siavolt avatar ea7son avatar dev99problems avatar c0b41 avatar koretskiyav avatar qknow-w avatar lopatkinevgeniy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.