How litwinski/canvas-lms works
Canvas is a learning management system. A typical user-facing path is entering a course workspace and using its learning activities; API enrollment is a distinct workflow that creates an enrollment in a course context. Other major branches include SIS roster import, course-content migration, external media, and browser-side interaction helpers. The tree and README establish broad product scope, but most feature controllers were not sampled, so their connections are left unverified rather than inferred.
Main entry points: routes.rb Web routes · enrollment_importer.rb SIS enrollment import · enrollments_api_controller.rb Enrollment API · kaltura_client_v3.rb Kaltura client
Components 21
Web and API entry
- Web routes
config/routes.rb - Request handling
app/controllers/application_controller.rb - Enrollment API
app/controllers/enrollments_api_controller.rb
Course learning
- Course workspace
app/controllers/courses_controller.rb - Course context
app/models/context.rb - Enrollment records
app/models/enrollment.rb - Assignments and quizzes
app/controllers - Discussions and wiki
app/controllers - Grading and outcomes
app/controllers - Conferences
app/controllers/conferences_controller.rb - Course setup wizard
app/controllers/getting_started_controller.rb
Administration and import
- SIS enrollment import
lib/sis/enrollment_importer.rb - SIS CSV parsing
lib/sis/csv/enrollment_importer.rb - Course content import
lib/cc/importer/cc_worker.rb - User services
app/models/user_service.rb
Browser and integrations
- Kaltura client
lib/kaltura/kaltura_client_v3.rb - Form interactions
public/javascripts/jquery.instructure_forms.js - Date and time UI
public/javascripts/jquery.instructure_date_and_time.js - Browser utilities
public/javascripts/jquery.instructure_misc_plugins.js - File upload UI
public/flash/uploadify-2.1.0/jquery.uploadify.v2.1.0.js
Other components
- Learner or teacher
Connections 14
- Learner or teacher → Web routes: sends requests
- Web routes → Request handling: dispatches
- Web routes → Course workspace: routes to
- Web routes → Assignments and quizzes: routes quizzes
config/routes.rb - Web routes → Discussions and wiki: routes wiki
config/routes.rb - Web routes → Conferences: routes to
config/routes.rb - Web routes → Course setup wizard: routes to
config/routes.rb - Enrollment API → Course context: enrolls user
app/controllers/enrollments_api_controller.rb - SIS enrollment import → SIS CSV parsing: parses CSV
- SIS enrollment import → Enrollment records: updates roster
- Learner or teacher → Form interactions: uses forms
- Learner or teacher → Date and time UI: uses controls
- Learner or teacher → File upload UI: uploads files
- Kaltura client → Learner or teacher: media service