Skip to content

andrekristanto1798/webrtc-app

Repository files navigation

React Boilerplate with Redux + Reselect + Immutable

Table of contents

Project structure

Installation

Configuration

Project structure

build/
src/
|- _base.scss           _________________________________ # Base style
|- app.scss             _________________________________ # Application style
|- app.jsx              _________________________________ # Application entry
|  |- actions/          _________________________________ # Redux actions
|  |- components/       _________________________________ # Reusable components
|  |- reducers/         _________________________________ # Redux state (immutable) and its reducer
|  |- routes/           _________________________________ # Application routes
|  |- selectors/        _________________________________ # Immutable selector
|  |- services/         _________________________________ # Service connecting to the API call
|  |- store/            _________________________________ # Redux store
|  |- templates/        _________________________________ # HTML template

webpack
|- paths.js ________________________________ # webpack paths needed
|- webpack.common.js _______________________ # common webpack config
|- webpack.dev.js __________________________ # development config
|- webpack.prod.js _________________________ # production config

Installation

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

Build

yarn build

Configuration

  • Webpack Config paths based on your file structure you can go to webpack/paths.js and modify the source and file names based on your need.
  • webpack/webpack.common.js config common webpack for both dev and production environments.
  • webpack/webpack.dev.js config webpack for dev environment.
  • webpack/webpack.prod.js config webpack for production environment.
  • /webpack.config.js main webpack config that merge common and webpack environment based config.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published