Giter Club home page Giter Club logo

react-template's Introduction

Template for React apps

As a beginner react developer you can start off with a create-react-app for your projects. create-react-app is a great starting point but doesn't prepare the field to a real-world, production-ready SPA. There is an option with create-react-app to eject and personalize the configs, that is too messy to handle.

The goal of this repo is to scaffold a React SPA that has consistent code style, installs and configures default React libraries, uses styled-component and React Bootstrap to give your responsive, mobile-first application.

Added Features

  1. JavaScript

    • supports latest Javascript + TypeScript

    • Babel packages to transpile code to ES5 for wider browser support

      • @babel/core is the Babel compiler core.
      • @babel/preset-env is a preset that allows you to use the latest JavaScript without needing to worry about what transformations/polyfills are needed for browser support.
      • @babel/preset-react is a wrapper around several transformations that enable JSX support and more.
  2. React - Core features only

    • react, react-dom, react-hot-loader, react-router, react-router-dom
    • Add React Bootstrap
  3. Webpack

    • Compile ES6+ code using Babel and TypeScript
    • Cross-env support for ENV variables
    • Clean up the dist folder automatically before each build
    • Cache busting bundled files in Production builds
    • Dev Server for development
    • Hot Module Loading for React
    • Support for SCSS and SCSS modules
    • Support for image processing

To do - add additional features

  • Add Redux and Redux Toolkit
  • Add Redux Saga
  • Organize the Code Structure using ducks pattern recommended by Redux
  • ESLint, Pretter, and Stylelint for code quality consistency
  • Run typescript type checking in parallel mode - fork-ts-checker-webpack-plugin
  • Jest for unit testing
  • Dockerize the project
  • Add authentication provider support

Reference

  1. https://webpack.js.org/guides/printable/
  2. https://github.com/Microsoft/TypeScript-Babel-Starter
  3. https://developerhandbook.com/webpack/webpack-4-from-absolute-scratch/
  4. https://hackernoon.com/lets-start-with-webpack-4-91a0f1dba02e
  5. https://linguinecode.com/post/how-to-setup-webpack-dev-server-react-babel
  6. https://thomlom.dev/setup-eslint-prettier-react/

react-template's People

Contributors

sudhakar7777777 avatar dependabot[bot] avatar

Watchers

James Cloos 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.