Giter VIP home page Giter VIP logo

react-pwa's Introduction

React Progressive Web Application

⏳ In progress

Real world progressive web application starter-kit running with an Ingress controller, a Nginx reverse proxy and pm2 on production:

🌍 ➡️ Ingress ➡️ Nginx ➡️ App

Stack

docker kubernetes nginx pm2 redis (sessions storage) express mysql graphql webpack react redux redux-saga firebase workboxjs

Features

Development Production
Hot Module Replacement
GraphiQL
Code Split + Async Components
Server Side Rendering
Service Worker (precache, offline)
Long term caching
Minify + gzip

Prerequisites

Getting started

$ git clone [email protected]:hrasoa/react-pwa.git app
$ cd app/docker
$ docker-sync start

# init the db instance
$ docker-compose run --rm db

# in a new tab stop the containers after finished
$ docker stop $(docker ps -q --filter "ancestor=mysql")   

# install the app
$ docker-compose run --rm --no-deps app yarn

# run
$ docker-compose up

Visit http://localhost:8001

Running the production build:

$ docker-compose run --rm --no-deps app npm run build:production
$ docker-compose -f docker-compose.yml -f production.yml up    

Deployment

This app will work out of the box on gcp Google Cloud Platform with jenkins Jenkins CI Multi-branch Pipeline, more information in the Jenkinsfile.

You can follow this tutorial to setup your continuous delivery pipeline.

License

MIT

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.