How lalitsureliya-2005/lms-solver works
This repository automates BMSCE LMS competitive-coding submissions: a student authenticates, the solver selects cached or generated Python code, injects it into the LMS editor, submits it, and records the verdict for resumption. It offers both a local CLI and a web interface with queued, private runs and live progress. The graph includes the documented scraping and solution-catalog capabilities; their implementation links are dashed where the sampled source does not show the wiring. Some internal source was not sampled.
Main entry points: runner.js CLI runner · solve.js Browser solver · problem-store.js Problem bookkeeping · server.js Web API and jobs
Components 14
User entrypoints
- CLI runner
runner.js - Web interface
public/app.js
Solve execution
- Login and sessions
login.js - Browser solver
solve.js - Run lock
lock.js - CLI banner
banner.js
Problem and solution data
- Problem catalog
scrape-problems.js - Python solutions
solutions - Problem bookkeeping
problem-store.js - Solution catalog builder
build-solutions-json.js
Web run service
- Web API and jobs
server.js - Run queue and events
server.js
Other components
- Student
- BMSCE LMS
Connections 21
- Student → CLI runner: starts run
- Student → Web interface: submits credentials
- CLI runner → Login and sessions: authenticates
- CLI runner → Browser solver: runs problems
runner.js - CLI runner → Problem bookkeeping: checks progress
runner.js - CLI runner → Run lock: acquires
runner.js - CLI runner → Solution catalog builder: builds catalog
runner.js - CLI runner → CLI banner: prints banner
- Login and sessions → BMSCE LMS: signs in
login.js - Browser solver → BMSCE LMS: submits code
solve.js - Browser solver → Python solutions: stores solution
solve.js - Browser solver → Problem catalog: scrapes problems
solve.js - Browser solver → Problem bookkeeping: uses cache
solve.js - Problem catalog → Problem bookkeeping: updates catalog
- Solution catalog builder → Problem bookkeeping: uses slug helper
build-solutions-json.js - Solution catalog builder → Python solutions: reads code
build-solutions-json.js - Web interface → Web API and jobs: requests run
public/app.js - Web interface → Run queue and events: receives progress
public/app.js - Web API and jobs → Run queue and events: queues jobs
server.js - Web API and jobs → Browser solver: runs job
server.js - Web API and jobs → Problem bookkeeping: loads problems