Coder Social home page Coder Social logo

rhiokim / react-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 5.0 3.11 MB

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

JavaScript 80.28% Nginx 5.83% HTML 2.06% CSS 11.83%

react-boilerplate's Introduction

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 [email protected]: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

react-boilerplate's People

Contributors

rhiokim avatar

Stargazers

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