How redward42/flashcard-app works
Flashcard App is a browser-based React application for generating and studying flashcard sets. The user enters a topic; the app requests cards from Gemini, displays the resulting deck, and supports navigation, random selection, shuffling, answer guesses, and flipping cards. The main application component owns these workflows and renders both the current card and the full set. The README also describes card generation and study features; no persistent storage is shown. The map follows the sampled entry point and source; styling details are omitted.
Main entry points: App.tsx Flashcard workspace · generateFlashcards.js Card generator · main.tsx React entry · Card.tsx Flashcard view
Components 6
App runtime
- React entry
src/main.tsx
Study experience
- Flashcard workspace
src/App.tsx - Flashcard view
src/components/Card.tsx
AI generation
- Card generator
src/api/generateFlashcards.js - Gemini API
Other components
- Learner
Connections 6
- Learner → React entry: opens app
src/main.tsx - React entry → Flashcard workspace: renders
src/main.tsx - Flashcard workspace → Card generator: requests cards
src/App.tsx - Card generator → Gemini API: sends prompt
src/api/generateFlashcards.js - Gemini API → Card generator: returns response
src/api/generateFlashcards.js - Flashcard workspace → Flashcard view: renders cards
src/App.tsx