Coder Social home page Coder Social logo

reactstarter's Introduction

ReactStarter

This is a starter app for ReactJS with some boilerplate code :p (Heavily copied from https://github.com/kyaroru/ReactStarter)

App Bundle

  • Webpack 3 ready (With development && production configs)
  • Bundle analyzer report will be generated upon build in dist folder (to visualize what is taking up bundle size)

Redux/React

  • Redux integration (You can add actions, reducers straight away!)
  • Redux Saga Integration (You can add new saga straight away!)
  • Redux Persist (Just add new reducer to the persist folder & it will automatically rehydrate that reducer upon starting your app)
  • Redux Logger (See your action and states for every action dispatched!)
  • Redux Form (So you can have your input fields connected to redux!)
  • React Router (Easily navigate between your screens)

Misc

  • ESLint rules applied (extends airbnb)
  • SCSS Ready (You can add new .scss files and import into app.scss)
  • FontAwesome CDN is used (index.html)
  • Folder alias for frequently used folder (eg. actions, reducers, sagas, utils) So you can import without using the relative path
import Actions from 'actions';

instead of

import Actions from '../../actions';

Style & Components

  • Basic styles in styles folder
  • Basic components:
Button.js // customized button component
Loading.js // Loading overlay
TextInput.js // Basic TextInput component connected to Redux with Validation
SignIn.js // A simple login screen to demo whole redux flow (action > reducer > saga > persist)

Installed Packages

  • Package Dependencies:
  "prop-types": "^15.6.0",
  "react": "^16.2.0",
  "react-dom": "^16.2.0",
  "react-redux": "^5.0.6",
  "react-router-dom": "^4.2.2",
  "redux": "^3.7.2",
  "redux-form": "^7.2.0",
  "redux-logger": "^3.0.6",
  "redux-persist": "^5.4.0",
  "redux-saga": "^0.16.0"

Clone

git clone https://github.com/aneesa/ReactStarter
cd ReactStarter
npm install

Start

npm start (development - browser will open with webpack-dev-server)
npm run build (production - files will be generated in `dist` folder)

reactstarter's People

Contributors

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