GithubHelp home page GithubHelp logo

react-boilerplates's Introduction

React-Boilerplate

React Project를 위한 Boilerplate


webpack-basic

webpack을 사용한 프로젝트 개발 및 빌드를 위한 boilerplate

  • webpack bundling
  • 개발 및 배포 환경 분리 (config directory)

Features

  • 개발 : webpack-dev-server, react-hot-loader
  • 빌드 : webpack
  • react, css, scss

Getting Start

  • 개발환경
  • webpack.config.dev.js에서 port 수정 가능
const port = process.env.PORT || 3000;
yarn install
yarn start

Then open http://localhost:3000/ to see your app.

  • 빌드
yarn build

redux-basic

redux 상태관리 라이브러리를 사용한 프로젝트 개발 및 빌드를 위한 boilerplate

  • react-scripts 사용한 개발 및 빌드
  • Container Components, Presentational Components 분리
├── src
│   ├── actions
│   │   └── counterAction.js
│   ├── container
│   │   └── ConunterContainer.js
│   │   └── index.js
│   ├── presentational
│   │   └── Conunter.js
│   │   └── index.js
│   ├── reducers
│   │   └── conunterReducer.js
│   │   └── index.js
│   ├── index.js
│   └── App.js
└── 

Features

  • 개발 및 빌드 : react-scripts
  • react, react-redux, redux-actions

Getting Start

  • 개발환경
yarn install
yarn react-scripts start
  • 빌드
yarn build

react-electron-basic

react, electron을 사용한 desktop app 프로젝트를 위한 boilerplate

Features

  • React : react, react-router-dom
  • Electron : electron, eletron-builder
  • 개발 및 빌드 : webpack, webpack-dev-server, react-hot-loader
  • etc : concurrently, wait-on, cross-env

Getting Start

  • 개발환경
  • package.json에서 개발 port 수정 가능 (react-start, electron-start 모두 수정 필요)
{
  "scripts": {
    "react-start": "cross-env PORT=3000 BROWSER=none webpack-dev-server --config configs/webpack.config.dev.js --hot",
    "electron-start": "wait-on http://localhost:3000 && cross-env MODE=dev electron ."
  }
}
yarn install
yarn start
  • 빌드
  • release 디렉토리에 실행 및 설치 파일 생성
yarn build-osx // for mac
yarn build-linux32" // for linux32",
yarn build-linux64" // for linux64",
yarn build-win32" : // for win32",
yarn build-win64" : // for win64"

react-boilerplates's People

Contributors

lkhoony avatar

Watchers

 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.