Coder Social home page Coder Social logo

react-redux-template's Introduction

react-redux-base (softcom.ng)

Forked from react-redux-base

Preview at http://chidimo.github.io/react-redux-base

Live preview

A live preview of this template is available at http://chidimo.github.io/react-redux-base

Using scripts

  1. To run tests, use command yarn test. Coverage report is automatically generated and placed in the coverage/ folder. To view the report, open /coverage/lcov-report/index.html. You can have jest watch your files by running yarn test:watch.
  2. To lint JavaScript files, run yarn lint. Optionally you can run yarn lint --fix to apply automatic fixes.
  3. To prettify files, run yarn pretty. By default, the command prettifies .ts, .js, .css, .html, .json, and .md files. You may extend this list by adding more file extensions to the pretty section of scripts in package.json.

Guides

Prettification

  1. Add .prettierrc file to root of project. See available configurations on the site.

  2. Install prettier as a development dependency.

    yarn add prettier -D
    
  3. Install prettier-vscode from the vs-code extension store.

  4. Create pretty script command.

Linting

  1. Add .eslintrc.js file to the root of the project.
  2. Create lint script command

Testing

  1. Add and configure enzyme test library. Guide

    yarn add -D enzyme enzyme-adapter-react-16 enzyme-to-json
    yarn add -D redux-mock-store
    yarn add -D babel-jest @babel/core @babel/preset-env @babel/preset-react
    yarn add -D sinon chai
    yarn add -D @babel/plugin-proposal-class-properties
    
  2. Mock out css styles in jest

Application layout structure

The app is laid out with a flexbox in such a way that no empty space will remain at the bottom. The app will completely occuppy the height of the viewport.

<section id="root">
  <header>
    <nav></nav>
  </header>

  <main class="container">
    <section></section>
  </main>
</section>

To Do

  1. Add prop-types validation library and enable in eslint.

react-redux-template's People

Contributors

moxiedeezee avatar

Watchers

James Cloos avatar Adisat Eletu 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.