Coder Social home page Coder Social logo

kevinfaveri / oldschool-react Goto Github PK

View Code? Open in Web Editor NEW
19.0 0.0 4.0 18.38 MB

A real world example React SPA using Router + Redux + Saga + Styled Components + Hooks + Storybook + Web Worker + Ant Design and Jest + Enzyme + Sinon + React Testing Library for tests.

License: MIT License

HTML 19.41% CSS 10.65% JavaScript 69.94%

oldschool-react's Introduction

CircleCI Netlify Status

codecov Performance score: 92/100

Old School Game Library

https://i.imgur.com/Vf1Tydi.png

Boilerplate project for learning React (& its main libraries commonly used) with the theme: Old School Game Library.

Branchs

The branchs are organized in cronological order.

  • ๐Ÿ‘ถ master branch: a react-create-app with Eslint (AirBNB codestyle) and Prettier support. Also has .editorconfig and .gitignore files. Contains this README which explains all branchs.

  • #๏ธโƒฃ basic-js branch: this branch is a react-create-app boilerplate from master branch + project structure, layouts, components and routing. Ant Design + Ant Motion for layouting and Enzyme + Sinon for tests are added to the app.

  • โœจ basic-redux branch: basic-js branch + React Redux added to manage the app state.

  • ๐ŸŒ redux-saga branch: basic-redux branch + Redux Saga added to manage side effects.

  • ๐ŸŽฃ hooks branch: redux-saga branch + connected-router-redux + HOOKS FOR EVERY COMPONENT (bye React Classes, hello fully functional SPA) [all tests rewritten + tests for Reducers and Sagas]. This version updated React from version 16.8.6 to 16.9.0.

  • โšก majestic branch: hooks branch + PROCESS ENVS + majestic added as a UI for Jest

  • ๐Ÿฆ‘ react-testing-library branch: majestic branch + react-testing-library replacing enzyme

  • ๐Ÿ“– storybook branch: react-testing-library branch + Storybook added for UX testing components

  • ๐Ÿ’… styled-components branch: storybook branch + code refactoring using styled-components for the styling

  • ๐Ÿ‘ท worker branch: styled-components branch + web worker for keeping the big scripts off the main thread

  • ๐Ÿ“ฑ mobile branch: worker branch + partial mobile support and some tests fixes

DEMO

The demo (which is based in the mobile branch) is available here: https://oldschool-react.netlify.com

Support me

ko-fi

All games appearing in this app have their rights reserved to their respective companies. This app is just a concept aimed at applying React and its main libraries commonly used in a real project.

oldschool-react's People

Contributors

kevinfaveri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.