Skip to content

Jadenhub/webpack-react-serviceworker-example

Repository files navigation

webpack-react-serviceworker-example

Features

  • React
  • Service Worker
  • Jest
  • Server-Side Rendering
  • styled-component
  • Webpack 5
  • Docker
  • RWD/AWD

Overview

It's a ServiceWorker example. If you refresh the page, the web application still works, even through no internet connection.

Environment Variable

This project use dotenv, so make sure you have this environment variables ready in .evn

API_HOST=https://api.coingecko.com
SERVER_PORT=3000
SERVICE_HOST=http://localhost:3000

Quick Start

npm install
npm run dev

Desktop

Mobile

Docker

Prerequisites

Make sure you have already installed Docker Engine.

$ docker -v
Docker version 20.10.7, build f0df350

Run

  npm run docker:up

Production

  npm run build
  npm run start

Test

  npm run test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published