Skip to content
/ template-pwa-react Public template

PWA starter template for React-based SPA development.

License

Notifications You must be signed in to change notification settings

capitec/template-pwa-react

Repository files navigation

Introduction

Progressive Web App starter template for React-based Single-page application (SPA) development, leveraging various Omni libraries

Usage

1️⃣   Create a new repository from this template (or fork) and clone locally:

git clone https://github.com/{your-repo-name}.git
cd {your-repo-name}

2️⃣   Restore all package dependencies:

npm i

3️⃣   Open it in VS Code:

code .

Scripts

The following NPM scripts within package.json should be noted:

  • serve - Launches dev server
  • build - Bundles code and copies artifacts for production from the src directory to the build directory.
  • preview - Launches a simple web server, serving the build directory (Remember to build first! 🎗️).
  • test - Launches the Playwright test runner & executes all tests within tests directory.
  • format - Runs the Prettier formatter on all .ts and .tsx files, applying format updates where necessary.

Features

Feature Availability Description
Components Omni Components
Component Intellisense
Routing React
VS Code Debugging .vscode/launch.json (Opens up a second browser instance)
Tests Playwright
Serve react-scripts
Build react-scripts
Build chunking /* webpackChunkName: */ compiler hints
Preview built output http-server
Formatting Prettier
Linting Not available

About

PWA starter template for React-based SPA development.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •