How marcolb123/freestylin works
Freestyle Dance Prompt App helps dancers choose a style, get a prompt and practice material, train with music and a metronome, and optionally record the session. The app also supports accounts, prompt submissions and moderation, favorites, and engagement analytics. The graph follows the React-to-API-to-MongoDB path and keeps practice timing, media, and journal features distinct. Some backend routes and models are documented but not excerpted; those links are cited to the README rather than presented as inspected implementation details.
Main entry points: App.jsx App and Routes · server.js Express API · PracticePanel.jsx Practice Controls · prompt-model.js Prompt Model
Components 25
Dancer Experience
- App and Routes
src/App.jsx - Authentication Context
src/auth-context.js - API Client
src/api.js - Training Journal
src/JournalPage.jsx - Music Player
src/components/MusicPanel.jsx - Music Link Parser
src/music.js - Tutorial Embed
src/components/YouTubeEmbed.jsx - YouTube URL Helpers
src/youtube.js
Practice Tools
- Practice Provider
src/practice/PracticeProvider.jsx - Practice Controls
src/practice/PracticePanel.jsx - Metronome Engine
src/practice/usePracticeEngine.js - Beat Scheduler
src/practice/scheduler.js - Tick Worker
src/practice/tick-worker.js - Count Display
src/practice/CountDisplay.jsx - Practice Contexts
src/practice/practice-context.js
API and Domain
- Express API
server.js - Prompt Model
prompt-model.js - Prompt API
server.js - Accounts and Favorites
server.js - Journal API
server.js - Admin and Analytics
server.js - MongoDB
Prompt Data
- Dance Prompt Content
prompts-data.js - Style Metadata
styles.js
Other components
- Dancer
Connections 30
- Dancer → App and Routes: uses
README.md - App and Routes → Authentication Context: uses
src/App.jsx - App and Routes → API Client: requests data
src/App.jsx - App and Routes → Training Journal: routes to
src/App.jsx - App and Routes → Music Player: renders
src/App.jsx - App and Routes → Tutorial Embed: renders
src/App.jsx - Music Player → Music Link Parser: parses links
src/components/MusicPanel.jsx - Tutorial Embed → YouTube URL Helpers: extracts IDs
src/components/YouTubeEmbed.jsx - App and Routes → Practice Provider: wraps routes
src/App.jsx - Practice Provider → Metronome Engine: uses engine
src/practice/PracticeProvider.jsx - Practice Provider → Practice Contexts: provides state
src/practice/PracticeProvider.jsx - App and Routes → Practice Controls: renders
src/App.jsx - Practice Controls → Practice Contexts: reads state
src/practice/PracticePanel.jsx - Practice Controls → Count Display: renders
src/practice/PracticePanel.jsx - Practice Controls → Beat Scheduler: uses timing
src/practice/PracticePanel.jsx - Count Display → Practice Contexts: reads beat
src/practice/CountDisplay.jsx - Metronome Engine → Beat Scheduler: schedules ticks
src/practice/usePracticeEngine.js - Metronome Engine → Tick Worker: starts worker
src/practice/usePracticeEngine.js - API Client → Express API: sends HTTP requests
README.md - Express API → Prompt Model: uses model
server.js - Express API → Prompt API: dispatches routes
server.js - Express API → Accounts and Favorites: dispatches routes
README.md - Express API → Journal API: dispatches routes
README.md - Express API → Admin and Analytics: serves admin stats
server.js - Prompt Model → MongoDB: stores prompts
README.md - Express API → MongoDB: uses MongoDB
README.md - Dance Prompt Content → Prompt Model: supplies prompt records
README.md - Express API → Style Metadata: validates styles
server.js - Prompt Model → Style Metadata: uses style enum
prompt-model.js - Music Player → Style Metadata: gets default mix
src/components/MusicPanel.jsx