Skip to content

ok2ju/modern-react-boilerplate

Repository files navigation

Modern React boilerplate

Toolset

Prerequisites

You should have node and yarn installed on your machine:

  • Node
  • Yarn: to install run npm install --global yarn

Getting Started

  1. Clone this repo
$ git clone https://github.com/ok2ju/modern-react-boilerplate.git && cd modern-react-boilerplate
  1. Install project dependencies
$ yarn install
  1. Run app (in dev mode) using following command:
$ yarn dev
  1. Visit http://localhost:8080

Available scripts

  • yarn dev - run app in dev mode
  • yarn build - build production-ready app
  • yarn lint - lint(validate) source code
  • yarn test - run tests

Varieties

This repository has two branches:

  • develop - basic react application boilerplate with minimum configuration
  • package/postcss - basic boilerplate with styles (postcss, css modules)
  • package/flowtyped-react - react boilerplate with flow - static type checker

Note: currently this branches have different dependencies versions. 😓 I will fix it later. For example develop branch has react-router v3 but package/flowtyped-react - react-router v4