Giter VIP home page Giter VIP logo

react-pwa-boilerplate's Introduction

pwa-react-boilerplate

Very simple version react application for Progressive Web App. Hope that it project can help many developers to understand that how to implement Progressive Web App with React.js

Goals

  • Build Modern Progressive Web App in strong background of performance
    • Web Manifest
    • Service Worker
    • Application Shell Architecture (with material-ui.com)
    • Supporting PRPL pattern
  • Highlighted with cutting-edge technologies like React.js latest version, Webpack 2, Babel with ES2015 latest version and more latest concepts and tools

Look and feel

By following material design and App shell design guide, We decide to mostly keep same design concept as Polymer Starter Kit via material-ui

Theme

You can change a primary color and accent color to customize theme at 'src/components/Theme.js' by updating theme configuration. for detail, visit to Themes - Material-UI

Install

Currently, we use yarn mainly not npm but you can be allowed to use npm

yarn install

Run

Test with Webpack Dev Server and also you can test with server worker on the server if you set true to webpackDevServerConfig.serviceWorker in scripts/config.js

// dev server start without service worker
yarn start

// dev server start with service worker by enabling webpack's env flag
yarn start -- --env.sw

Build

This application will be built taking advanges from xo, eslint and Webpack2.

yarn run build

Deploy to github

Deploy this app to github with prefix with name in package.json.

You have to make sure that this app is running on secure options with https

yarn run gh

Test

We are mainly using ava and enzyme to test our React components. Please visit to each sites for understanding how to use it.

yarn test

Project structure

.
├── build: build files, it will be created after build
├── public: public / static files
├── src: application source
├── package.json
├── readme.md
├── webpack.config.js
└── yarn.lock

License

MIT © Jimmy Moon

react-pwa-boilerplate's People

Contributors

koresar avatar ragingwind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-pwa-boilerplate's Issues

Removing React MDL

It make very beginner users feel higher complexity to understand or get into. It will be used at other version

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.