Giter Site home page Giter Site logo

ekv88 / react-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 875 KB

React, redux, trunk, reselect, react router and react scripts boilerplate

License: MIT License

HTML 13.96% JavaScript 85.58% CSS 0.45%
redux boilerplate reactjs-boilerplate plop styleguide ecmascript trunk react-router reactjs

react-boilerplate's Introduction


⚠ Some things are still work in progress! ⚠


ReactJS Boilerplate ⚛

This is boilerplate code made to support scalability and everything you would need in SPA

dependencies Status dependencies Status devDependencies Status

Let's get started 🚀

If you are new to ReactJS and SPA world, all you need to do is to clone repo, navigate to folder and install dependencies using npm or yarn:

Using npm

git clone https://github.com/ekv88/react-boilerplate.git
cd react-boilerplate
npm install

Using yarn

git clone https://github.com/ekv88/react-boilerplate.git
cd react-boilerplate
yarn install

Available scripts ⚡

There are few available scripts that u can use, this boilerplate dose not support test yet, but there's plan for that as well, or feel free to create pull request

Using npm

  • npm start - Starts development server
  • npm run build - Builds production version of
  • npm run styleguide - Start styleguidist
  • npm run styleguide:build - Build styleguidist components preview
  • npm run generator - Code generator wizard

Using yarn

  • yarn start - Starts development server
  • yran run build - Builds production version of
  • yarn run styleguide - Start styleguidist
  • yarn run styleguide:build - Build styleguidist components preview
  • yarn run generator - Code generator wizard

Project tree 🌳

If you are wondering about folder structure, here is brief intro to every file and what is used for


Code generator 🏗

Smart man once said: "If you don't overkill every project with automation, are you even a 21st century developer?"

Typing code is considered obsolete today, and it's wonderful, with a little help of Plop.JS I've created automated wizard for common components, redux and HoC with possibility to generate styleguide examples as well

What can be generated?

  • Common components - With or without useState, useEffect, PropTypes
  • Higher-Order Component example
  • Redux Action, Selector, Reducer bundle
  • You can also choose if you want to export example for styleguide

How to use it?

  • Generator wizard (Recommended)

    • Just open terminal executenpm run generator command
  • CLI command

    • @TODO: Work in progress

Redux 🔄

Todo this one


Dependencies 📦

Name Version What for?
@material-ui/core 4.9.5 TODO
@material-ui/icons 4.9.1 TODO
axios 0.19.2 TODO
connected-react-router 6.8.0 TODO
history 4.10.1 TODO
react 16.13.0 TODO
react-dom 16.13.0 TODO
react-redux 7.2.0 TODO
react-router 5.1.2 TODO
react-router-dom 5.1.2 TODO
react-scripts 3.4.0 TODO
redux 4.0.5 TODO
redux-thunk 2.3.0 TODO
reselect 4.0.0 TODO

Dev. Dependencies 📦

Name Version What for?
http-proxy-middleware 1.0.2 If you need to create proxy to ur API this is way to go
node-sass 4.13.1 So we can use SASS in our project
redux-devtools-extension 2.13.8 Check it out - It's nice extension that helps you follow how is your redux behiving
react-styleguidist 11.0.1 Styleguide is way to go if you are looking to work with multiple people, so you have one place where you can look at all your components.

License

ReactJS Boilerplate is MIT licensed.

react-boilerplate's People

Contributors

ekv88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sokos6

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.