How thdwlndjs/wantwear works
This is a clothing-link collection app: users sign in, then add product URLs, browse/filter the saved collection, and delete entries. The frontend also requests link-preview and sold-out checks; the backend tree indicates authentication, product, preview, and sold-out services, plus scheduled notifications. The source excerpts establish frontend routing and API calls, but backend implementations and notification wiring were not sampled, so those relationships are shown as unverified where appropriate.
Main entry points: Home.jsx Collection manager · App.jsx App routing · AuthController.java Authentication endpoints · FirstNav.jsx Login menu
Components 26
Web application
- App routing
frontend/App.jsx - App bootstrap
frontend/main.jsx - Login menu
frontend/page/FirstNav.jsx - Login form
frontend/page/Login.jsx - Sign-up form
frontend/page/Signin.jsx - Category navigation
frontend/page/Navbar.jsx - Collection manager
frontend/page/Home.jsx - Auth API client
frontend/api/authApi.js - Product card
frontend/components/ProductCard.jsx
Backend services
- Authentication endpoints
backend/src/main/java/com/example/springboot/controller/AuthController.java - Authentication service
backend/src/main/java/com/example/springboot/service/AuthService.java - JWT security
backend/src/main/java/com/example/springboot/config/SecurityConfig.java - JWT provider
backend/src/main/java/com/example/springboot/config/JwtProvider.java - Product endpoints
backend/src/main/java/com/example/springboot/controller/ProductController.java - Product service
backend/src/main/java/com/example/springboot/service/ProductService.java - Preview endpoint
backend/src/main/java/com/example/springboot/controller/PreviewController.java - Sold-out endpoint
backend/src/main/java/com/example/springboot/controller/SoldOutController.java - Sold-out checker
backend/src/main/java/com/example/springboot/service/SoldOutChecker.java - Preview proxy
server/server.js
Persistence
- Product repository
backend/src/main/java/com/example/springboot/repository/ProductRepository.java - Product records
backend/src/main/java/com/example/springboot/entity/ProductEntity.java - Application database
backend/src/main/resources/db/migration/V1__init_schema.sql
Notifications
- Notification scheduler
backend/src/main/java/com/example/springboot/scheduler/NotificationScheduler.java - Web push service
backend/src/main/java/com/example/springboot/service/WebPushService.java
Other components
- User
- Product websites
Connections 25
- App bootstrap → App routing: renders
frontend/main.jsx - App routing → Login menu: routes
frontend/App.jsx - App routing → Category navigation: routes
frontend/App.jsx - App routing → Collection manager: routes
frontend/App.jsx - Login menu → Login form: renders
frontend/page/FirstNav.jsx - Login menu → Sign-up form: renders
frontend/page/FirstNav.jsx - Login form → Auth API client: calls
frontend/page/Login.jsx - Category navigation → Auth API client: calls
frontend/page/Navbar.jsx - User → App bootstrap: opens
- Login form → Authentication endpoints: authenticates
- Sign-up form → Authentication endpoints: registers
- Auth API client → Authentication endpoints: requests
- Authentication endpoints → Authentication service: delegates
- JWT security → JWT provider: uses
- Collection manager → Product endpoints: loads, adds, deletes
- Collection manager → Preview endpoint: requests preview
- Collection manager → Sold-out endpoint: checks stock
- Product endpoints → Product service: delegates
- Product service → Product repository: uses
- Product repository → Product records: persists
- Product records → Application database: stored in
- Sold-out endpoint → Sold-out checker: delegates
- Notification scheduler → Web push service: schedules
- Collection manager → Product card: displays products
- Preview proxy → Product websites: fetches page
server/server.js