How d01r/algorithmplatform works
This is a web-based algorithms learning tool: users browse algorithm material and visualizations, submit code for compilation, and can authenticate; the server also generates Word reports. The client routes pages and calls user/compiler APIs, while the Express server dispatches requests to controllers and Sequelize models. The graph preserves the documented visualization, authentication, compilation, and reporting branches. Some API-client and external compiler wiring is unsampled, so those links are marked unverified rather than asserted as source-backed calls.
Main entry points: AlgorithmPage.jsx Algorithm lessons · AppRouter.jsx Page routing · MainPage.jsx Algorithm catalog · CompilerPage.jsx Code editor
Components 26
Client experience
- Application shell
client/src/App.jsx - Page routing
client/src/routes/AppRouter.jsx - Compiler API client
client/src/services/compilerAPI.js - User API client
client/src/services/userAPI.js - Sign-in and signup
client/src/pages/AuthPage/AuthPage.jsx
Algorithm learning
- Algorithm catalog
client/src/pages/MainPage/MainPage.jsx - Algorithm lessons
client/src/pages/AlgorithmPage/AlgorithmPage.jsx - Algorithm definitions
client/src/utils/algorithms.js - Sort visualization
client/src/components/BarSort/BarSort.jsx - Search visualization
client/src/components/BinarySearch/BinarySearch.jsx - Graph visualization
client/src/components/GraphPaint/GraphPaint.jsx - Code editor
client/src/pages/CompilerPage/CompilerPage.jsx - Compiler languages
client/src/utils/languagesCompiler.js
Server services
- User endpoints
server/routes/userRouter.js - Compiler endpoint
server/routes/compilerRouter.js - Report endpoint
server/routes/reportWordRouter.js - Compilation workflow
server/controllers/compilerController.js - Server algorithms
server/utils/algorithms.js - Compiler service adapter
server/services/compilerAPI.js - Word report generation
server/controllers/reportWordController.js
Identity and data
- Account operations
server/controllers/userController.js - Token verification
server/middleware/authMiddleware.js - Account and code records
server/models/models.js - Database connection
server/db.js
Other components
- Learner
- Compiler service
Connections 34
- Learner → Application shell: uses
client/src/App.jsx - Application shell → Page routing: renders
client/src/App.jsx - Learner → Page routing: navigates
- Page routing → Algorithm catalog: routes to
- Page routing → Sign-in and signup: routes to
- Page routing → Algorithm lessons: routes to
- Page routing → Code editor: routes to
- Algorithm catalog → Algorithm lessons: links algorithms
- Algorithm catalog → Algorithm definitions: reads
client/src/pages/MainPage/MainPage.jsx - Algorithm catalog → Algorithm lessons: renders cards
client/src/pages/MainPage/MainPage.jsx - Algorithm lessons → Algorithm definitions: reads
client/src/pages/AlgorithmPage/AlgorithmPage.jsx - Algorithm lessons → Sort visualization: renders
client/src/pages/AlgorithmPage/AlgorithmPage.jsx - Algorithm lessons → Search visualization: renders
client/src/pages/AlgorithmPage/AlgorithmPage.jsx - Algorithm lessons → Graph visualization: renders
client/src/pages/AlgorithmPage/AlgorithmPage.jsx - Code editor → Algorithm definitions: reads
client/src/pages/CompilerPage/CompilerPage.jsx - Code editor → Compiler languages: reads
client/src/pages/CompilerPage/CompilerPage.jsx - Code editor → Compiler API client: submits code
client/src/pages/CompilerPage/CompilerPage.jsx - Compiler API client → Compiler endpoint: sends request
- Sign-in and signup → User API client: submits credentials
client/src/pages/AuthPage/AuthPage.jsx - Application shell → User API client: checks session
client/src/App.jsx - User API client → User endpoints: sends request
- User endpoints → Token verification: protects check
server/routes/userRouter.js - User endpoints → Account operations: dispatches
server/routes/userRouter.js - Account operations → Account and code records: reads and writes
server/controllers/userController.js - Account and code records → Database connection: connects through
server/models/models.js - Compiler endpoint → Token verification: protects endpoint
server/routes/compilerRouter.js - Compiler endpoint → Compilation workflow: dispatches
server/routes/compilerRouter.js - Compilation workflow → Server algorithms: selects algorithm
server/controllers/compilerController.js - Compilation workflow → Compiler service adapter: runs code
server/controllers/compilerController.js - Compiler service adapter → Compiler service: delegates
- Report endpoint → Token verification: protects endpoint
server/routes/reportWordRouter.js - Report endpoint → Word report generation: dispatches
server/routes/reportWordRouter.js - Word report generation → Account and code records: loads report data
server/controllers/reportWordController.js - Word report generation → Server algorithms: uses algorithm details
server/controllers/reportWordController.js