How sergey-bukreev/flash-cards works
Flashcards Live is a React flashcard application for account access, deck and card management, studying cards, and profile editing. The principal workflow is: a signed-in learner browses decks, opens a deck’s cards, studies a random card, reveals its answer, and submits a rating. Deck and card management and account/profile operations are separate branches. The graph connects only relationships supported by the README or shown in the supplied source index and excerpts; some page-to-service links are supported by index references rather than inspected page code.
Main entry points: router.tsx Route access · auth.service.ts Authentication · learn.page.tsx Study session · decks.sevice.ts Deck operations
Components 21
Application routing
- React entry
src/main.tsx - App root
src/App.tsx - Route access
src/router.tsx - Application layout
src/components/layout/layout.tsx
Accounts and profile
- Sign-in and signup
src/pages/sign-in/sign-in.page.tsx - Profile editing
src/pages/profile/profile.tsx - Profile state
src/pages/profile/use-profile-page.ts - Password recovery
src/components/common/utils/email-recover.tsx
Deck and card management
- Deck browsing
src/pages/decks/decks.page.tsx - Deck list state
src/pages/decks/use-decks-page.tsx - Deck and cards
src/pages/deck/deck.page.tsx - Deck page state
src/pages/deck/use-deck.page.ts
Card learning
- Study session
src/pages/learn/learn.page.tsx - Card rating form
src/components/forms/rate-card-form/rate-card-form.tsx
API services
- Authentication
src/services/auth/auth.service.ts - Deck operations
src/services/decks/decks.sevice.ts - Card operations
src/services/cards/card.service.ts - API configuration
src/services/flashcards-api.ts - HTTP base query
src/services/flashcards-base-query.ts
Other components
- Learner
- Flashcards API
Connections 27
- Learner → React entry: opens app
- React entry → App root: renders
src/main.tsx - App root → Route access: renders
src/App.tsx - Route access → Application layout: wraps routes
src/router.tsx - Route access → Sign-in and signup: routes to
src/router.tsx - Route access → Deck browsing: routes to
src/router.tsx - Route access → Deck and cards: routes to
src/router.tsx - Route access → Study session: routes to
src/router.tsx - Route access → Profile editing: routes to
src/router.tsx - Application layout → Authentication: checks identity
src/components/layout/layout.tsx - Sign-in and signup → Authentication: authenticates
src/pages/sign-in/sign-in.page.tsx - Profile editing → Profile state: uses state
src/pages/profile/profile.tsx - Profile state → Authentication: updates account
- Password recovery → Authentication: recovers account
- Deck browsing → Deck list state: uses state
- Deck list state → Deck operations: loads decks
src/pages/decks/use-decks-page.tsx - Deck and cards → Deck page state: uses state
- Deck page state → Deck operations: loads deck
src/pages/deck/use-deck.page.ts - Deck page state → Card operations: loads cards
src/pages/deck/use-deck.page.ts - Study session → Deck operations: loads deck
src/pages/learn/learn.page.tsx - Study session → Card operations: studies and rates
src/pages/learn/learn.page.tsx - Study session → Card rating form: renders
src/pages/learn/learn.page.tsx - Authentication → API configuration: injects endpoints
src/services/auth/auth.service.ts - Deck operations → API configuration: injects endpoints
src/services/decks/decks.sevice.ts - Card operations → API configuration: injects endpoints
src/services/cards/card.service.ts - API configuration → HTTP base query: configures query
src/services/flashcards-api.ts - HTTP base query → Flashcards API: sends requests