Skip to content

React App(based on create-react-app)+Flowtype+Redux and React-Router Boilerplate with Material Design, Ant Design, Sementic UI, Photonkit and NW App-shell

Notifications You must be signed in to change notification settings

rhiokim/react-boilerplate

Repository files navigation

This project was bootstrapped with Create React App and customized a bit.

Features

Requirement

$ brew update
$ brew install flow
$ npm i -g flow-typed // or yarn global add flow-typed

How to use

First, you should clone the repo and install the dependencies.

$ git clone git@github.com:rhiokim/react-boilerplate.git <yourAppName>
$ cd <yourAppName>
$ npm install // or yarn
$ flow-typed install

Then, launch the boilerplate app.

$ npm start

You should see a new browser tap opening and a title of "React Boilerplate" in http://localhost:3000.

From there, you start to develop your own code in the src directory. When you finish coding, use npm run build to build the static files.

And you want to make the docker image with production files, use npm run deploy.

When committing your code, you should use AngularJS's commit message convention. Otherwise, the repo will throw an error. If you use npm run commit instead of git commit, the command will help you to produce a formatted commit message.

How to build

$ npm run build

Run test

$ npm test

Dockerize

$ npm run docker:build  // build image
$ npm run docker:run    // run container
$ npm run docker:rm     // remove running container
$ npm run docker        // run build, rm, run at once

Branch Structure

master
  \_ nw
    \_ nw-ext (offline first app with pouchdb, etc)
  \_ material
  \_ ant-design
  \_ jwt (JWT demo)
  \_ photon
    \_ photon-with-nwjs (photon + nw)
  \_ semantic-ui

Branch specified

Screenshot

  • with photon photon home
  • with material photon home
  • with ant-design photon home
  • with photon and nwjs photon home

License

MIT

About

React App(based on create-react-app)+Flowtype+Redux and React-Router Boilerplate with Material Design, Ant Design, Sementic UI, Photonkit and NW App-shell

Resources

Stars

Watchers

Forks

Packages