Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Progressive Web Application

Aperta
#685 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
nextjs, react, tailwindcss, typescript
Ambito
frontend, web-dev

Direzione di ricerca

Esamina innanzitutto la struttura esistente di Next.js App Router prima di definire l’ambito delle modifiche a next.config.js o next.config.mjs, public/manifest.json, al service worker e ad app/layout.tsx. Stabilisci prima le icone specifiche dell’applicazione, i metadati, il comportamento della cache, il fallback offline e i vincoli di hosting; il lavoro è completato quando è disponibile una PWA funzionante installabile su Android, i passaggi di sviluppo e deployment sono documentati e il comportamento offline e l’installabilità sono stati verificati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

You are an expert Next.js and PWA developer.

I have an existing Next.js application (using App Router, Next.js 14+). Convert it into a fully functional Progressive Web App (PWA) that can be installed/downloaded as a native-like app on Android (via Chrome) with the following requirements:

Core PWA Features Required:
  1. Web App Manifest (manifest.json)

    • Proper name, short_name, description
    • Multiple icon sizes (192x192, 512x512, maskable icons)
    • start_url, display: standalone, theme_color, background_color
    • orientation: portrait or any as needed
    • Categories and screenshots if possible
  2. Service Worker

    • Workbox or custom service worker for caching (pages, assets, API responses)
    • Offline support (show cached content or offline page)
    • Background sync / push notification readiness (even if not implementing push yet)
    • Proper caching strategies (NetworkFirst for API, CacheFirst for static assets)
  3. Next.js Configuration

    • Use next-pwa plugin if recommended, or manual setup with next.config.js / next.config.mjs
    • Correct handling of App Router (app/ directory)
    • Environment variables and build optimizations for PWA
    • HTTPS enforcement reminder / secure context
  4. Installation Experience on Android

    • Make the "Install" / "Add to home screen" prompt appear reliably in Chrome on Android
    • Proper meta tags (<meta name="theme-color">, apple-touch icons for broader compatibility)
    • Custom install button (optional but recommended) with beforeinstallprompt event
  5. Best Practices

    • Lighthouse PWA score ≥ 90
    • Fast loading (Core Web Vitals optimized)
    • Responsive design already assumed
    • Update handling (new version notification)
    • Fallback offline page
Deliverables:
  • Full updated next.config.js / next.config.mjs
  • Complete public/manifest.json
  • Service worker file(s) location and code
  • Any new components (e.g., InstallPrompt component)
  • Updated app/layout.tsx or _document.js with all necessary <Head> / meta tags
  • Instructions for:
    • Running in development mode with PWA
    • Building and testing the PWA
    • How to test installability on Android (Chrome DevTools + Android device)
    • Deploying to Vercel/Netlify (PWA-compatible hosting)

Assume the project uses TypeScript and Tailwind. Provide the complete code changes with clear file paths and diff-style explanations where helpful.

Start by asking me for any specific details about my app (name, icons, features, current folder structure) if needed, otherwise provide a complete ready-to-use implementation.

Lingua principale
TypeScript
Stelle
19
Fork
7
Merge medio
59m
PR unite (30g)
16

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di QueueLab/QCX

Tutte le issue di QueueLab/QCX

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.