Giter VIP home page Giter VIP logo

react-sass-boilerplate's Introduction

React Turbo Boilerplate

Hey all,

As I am getting more ad more comfortable working with React and Webpack over time, I see a need of having a boilerplate that is scalable, customizable and experimentable. The boilerplate that does not requires you to eject and panic seeing hundred of packages installed, bunch of advanced script written to serve all purposes. The boilerplate that allow you to understand easily, but powerful and embrace good practices and workflow, optimizing for production, and most of all, does not do any magic.

I present you React Turbo Boilerplate

Prerequisite

  1. Package manager: Preferably yarn but npm is also compatible
  2. Node >=8.9.0 - Use nvm if you want to use different node version

Specs

  1. Webpack 4
  2. Babel 7
  3. SASS / SCSS
  4. React-router
  5. Props-type
  6. React-Helmet

Features

  1. SEO optimized
  • robots.txt
  • Auto generate sitemap
  • meta tags added allow easy configuration
  • Social media sharing optimized
  1. Easy development experience with hot-loader
  2. Add Polyfill automatically to browser (This is redundant since Babel 7)
  3. Automatically resolve stastic path (like Assets/images/img.png instead of ../../assets/images/img.png)
  4. SASS / SCSS compiler (easy to customize predecesor of your own with LESS, Stylus... using the same format)
  5. CSS bundle with option to easily hash className with CSS module
  6. Uglify CSS, JS
  7. Automaticaly create Analyzer file after build
  8. Create /compressed folder for extra optimization (use optionally)
  9. Add Image optimization
  10. Split build to chunks for caching and fast loading
  11. Lazy-loading enabled

Get started

React Turbo Boilerplate using Component Container architecture, which help you to manage stateful and stateless component yet making it super flexible.

  1. Know the structure
  • /src/components -> Where holds all dummies components and components stylesheets. Preferrably stateless
  • /src/containers -> Where holds all smart components and NO components stylesheets. Supposably for React classes with data manipulation ability
  • /src/routes.js -> Defines all routes/pages within the app
  1. Personalize the app
  • /src/robots.txt -> Change Sitemap to your sitemap url, or remove it if you don't have one.\
  • package.json -> Change App name

Author words

The boilerplate is under MIT license, you can use it for all purposes without hesitation, as long as you keep the LICENSE file notice. If you like this boilerplate, feel free leave a stars. If you can contribute to the repo, I am more than happy to accept the pull request.

react-sass-boilerplate's People

Contributors

roshankrsoni avatar

Watchers

 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.