Store Tracker v2 — React + Vite + Tailwind frontend
Find a file
Maddox e97f620dff Add PWA support (vite-plugin-pwa)
Manifest with standalone display, dark theme color, 192/512 icons.
NetworkFirst workbox strategy for API routes. Dockerfile uses
--legacy-peer-deps for vite-plugin-pwa peer dep conflict with Vite 8.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 21:02:20 -04:00
public Add PWA support (vite-plugin-pwa) 2026-04-07 21:02:20 -04:00
src Replace rolodex with animated expandable list for mobile 2026-04-07 20:35:50 -04:00
.gitignore Initial commit — Store Tracker v2 frontend 2026-04-06 20:40:08 -04:00
Dockerfile Add PWA support (vite-plugin-pwa) 2026-04-07 21:02:20 -04:00
eslint.config.js Initial commit — Store Tracker v2 frontend 2026-04-06 20:40:08 -04:00
index.html Initial commit — Store Tracker v2 frontend 2026-04-06 20:40:08 -04:00
nginx.conf Initial commit — Store Tracker v2 frontend 2026-04-06 20:40:08 -04:00
package-lock.json Add PWA support (vite-plugin-pwa) 2026-04-07 21:02:20 -04:00
package.json Add PWA support (vite-plugin-pwa) 2026-04-07 21:02:20 -04:00
README.md Initial commit — Store Tracker v2 frontend 2026-04-06 20:40:08 -04:00
tsconfig.app.json Initial commit — Store Tracker v2 frontend 2026-04-06 20:40:08 -04:00
tsconfig.json Initial commit — Store Tracker v2 frontend 2026-04-06 20:40:08 -04:00
tsconfig.node.json Initial commit — Store Tracker v2 frontend 2026-04-06 20:40:08 -04:00
vite.config.ts Add PWA support (vite-plugin-pwa) 2026-04-07 21:02:20 -04:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])