Standalone app: Extract marketplace module as independent PWA #18

Closed
opened 2026-04-20 05:46:11 +00:00 by padreug · 0 comments
Owner

Summary

Apply the standalone app isolation pattern (used for activities/sortir.ariege.io) to the marketplace module.

Pattern to follow

Reference: src/activities-app/ and vite.activities.config.ts

  1. Create marketplace.html entry point at project root
  2. Create src/marketplace-app/ with main.ts, app.ts, App.vue (bottom nav), app.config.ts (base + market modules only)
  3. Create vite.marketplace.config.ts with own PWA manifest, SPA fallback plugin, dist-marketplace/ output
  4. Add dev:marketplace, build:marketplace, preview:marketplace npm scripts
  5. Bottom navigation tailored to marketplace (Browse, Categories, Cart, Orders, Settings)

Considerations

  • Marketplace module currently depends on base module for Nostr relay infrastructure and auth
  • Market event publishing is handled by LNbits nostrmarket extension -- standalone app should still connect to same backend
  • Determine domain: marche.ariege.io? boutique.ariege.io?
  • PWA manifest in French with marketplace-specific metadata
  • Bundle should only include base + market modules (~400-500 KB gzipped estimate)
  • Activities standalone app: src/activities-app/, vite.activities.config.ts
  • Memory note: project_standalone_app_pattern.md
## Summary Apply the standalone app isolation pattern (used for activities/sortir.ariege.io) to the marketplace module. ## Pattern to follow Reference: `src/activities-app/` and `vite.activities.config.ts` 1. Create `marketplace.html` entry point at project root 2. Create `src/marketplace-app/` with `main.ts`, `app.ts`, `App.vue` (bottom nav), `app.config.ts` (base + market modules only) 3. Create `vite.marketplace.config.ts` with own PWA manifest, SPA fallback plugin, `dist-marketplace/` output 4. Add `dev:marketplace`, `build:marketplace`, `preview:marketplace` npm scripts 5. Bottom navigation tailored to marketplace (Browse, Categories, Cart, Orders, Settings) ## Considerations - Marketplace module currently depends on base module for Nostr relay infrastructure and auth - Market event publishing is handled by LNbits nostrmarket extension -- standalone app should still connect to same backend - Determine domain: `marche.ariege.io`? `boutique.ariege.io`? - PWA manifest in French with marketplace-specific metadata - Bundle should only include base + market modules (~400-500 KB gzipped estimate) ## Related - Activities standalone app: `src/activities-app/`, `vite.activities.config.ts` - Memory note: `project_standalone_app_pattern.md`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aiolabs/webapp#18
No description provided.