GithubHelp home page GithubHelp logo

bmnepali / react-redux-starter Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 152 KB

A project created with love using React 16, Babel 7, Redux 4, Webpack 4, Eslint, StyleLint, Prettier, SCSS, Html5, and Bootstrap 4.x.x with Jest code coverage.

License: MIT License

JavaScript 88.27% CSS 5.62% HTML 6.11%
redux eslint stylelint preetier pre-commit webpack4 babel7 react16 react-redux starter-project

react-redux-starter's Introduction

React Redux Starter

A project created with love using React, Redux, SCSS, Eslint, StyleLint, Prettier, Webpack, Html5. This page documents all steps that are necessary to get this project up and running.

img David GitHub

Features

  • React 16.8.x
  • Redux 4.x.x
  • Webpack 4.x.x
  • Babel 7.x.x
  • Bootstrap v4.3.x
  • jQuery v3.3.x
  • Hot Module Replacement
  • Uses Pre-Commit Hook for
    • Runs Pretifier
    • Runs Eslint Fix
    • Runs StyleLint Fix
  • Eslint
  • StyleLint
  • Preetier
  • SASS/SCSS using scss-loader, css-loader and node-sass
  • Js Minification for Production
  • css Minification for Production
  • Code Splitting usnig React.lazy() and React.Suspense
  • Async/Await support
  • Test Coverage
  • Standard commit message template on git commit

Guidlines for Developers

Working On the Project

Prerequisists:

  • Nodejs: > v8.12.0 (LTS) (Install Nodejs)
  • Prefered Dev Machine: MAC (OSX) but can be done in any operating system

Installing the project:

Clone the Repo

git clone https://github.com/bmnepali/react-redux-starter.git

Install the node packages
  • Go to the project directory: cd react-redux-starter

  • Then run command to install project dependencies npm install or simply npm i

  • Configure the standard git commit template git config --local commit.template "./.git-commit-template"

Run the project (development):
  • Run the following command to run the project npm run start
Run all tests for one time only

npm run test

Run tests and watch for changes

npm run test:watch

Run tests and gerate test coverage report

npm run test:coverage

Updating Test Snapshots

npm run test -- -u (To update the previous component's snapshots)

Run eslint for linting css, scss files

npm run lint:style

Fixing linting issues in css/scss files

npm run lint:style:fix

Run eslint for linting js/jsx files

npm run lint:js

Fixing linting issues in js/jsx files

npm run lint:js:fix

Making code preetier :) by formatting

npm run pretify

Debugging Test cases in browser

npm run test:debug

For commiting the changes just do

git commit (and it automitically lints, pretifies js and scss)

Branch Structure (Git Workflow)

master :

Where all our production ready project source code is stored. Mostly we dont touch this branch. Except for deployment.

staging:

Where all our testing is done. Which means QA will use this branch for testing the solutions. After all things are ok, we merge staging in to master and deploy application. QA will only use this branch.

develop:

Where our latest development code is kept. It holds the currently developed features after the Pull Request are approved by devs working on their separate feature branches.

feature-branch:

It contains the task wise features developed by one or more developer. Which once approved will be merged into develop branch. E.g: RRS-1001-some-awesome-feature (If you can reflect the task name as branch name, will be better!) But also remember your branch name mnust be concise and as sort as possible.

Maintainer:

Cheers ๐Ÿป๐Ÿ˜Ž

react-redux-starter's People

Contributors

bmnepali avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

eeposit

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.