Coder Social home page Coder Social logo

pwa-template's Introduction

Description

A lightweight create-react-app alternative for typical React project (React.js, Redux, Redux Sagas, Reselect, Ramda.js and etc.)

Before you start

To speedup development and debugging it's essential to install React Developer Tools and Redux Developer Tools as plugins for your browser.

Installation

  • Clone repo to your working directory
  • Install required packages with npm i
  • Build app with npm run build, npm run build:dev or npm run build:watch
  • Run app locally with npm run server or npm run server:ssl
  • Install ca.ssl.indexnl.com.crt certificate inside server/certificate folder in order to use SSL on your localhost (See the detailed installation guide for Windows users)

SSL certificate installation detailed guide for Windows

  • Navigate to server/certificate folder inside app working directory
  • Double click on ca.ssl.indexnl.com.crt certificate file
  • Press Install Certificate button
  • Select certificate store location and press Next (can be skipped by default)
  • Select Place all certificates in the following store and press Browse button
  • In the opened window select Trusted Root Certification Authorities and press Ok
  • Make sure Trusted Root Certification Authorities appeared in certificate store input field and press Next
  • In the newly opened window press Finish button
  • After successful installation close all browser instances in order new settings to take effect

Recommendations

  • Keep deps "up to date"
  • Optimize newly added deps with babel-plugin-transform-imports (See examples)

Issues

  • Server: Requesting a non static asset file cause to return index.html document instead of 404 error
  • Environment: spdy is not supporting Node.js versions greater than 10.18.1
  • App: offline-plugin isn't unregistering service worker if app is running in DEV mode after PROD

pwa-template's People

Contributors

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