Skip to content

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

License

Notifications You must be signed in to change notification settings

ekv88/react-boilerplate

Repository files navigation


⚠ 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.

Releases

No releases published

Packages

No packages published