How diasks2/scheduler works
Hospital Shift Scheduler is a small Rails application whose visible workflow is a user signing in and managing hospital shifts; the README also describes shift trading, workload tracking, email updates, and fairness points. The supplied routes expose the home page and Devise user authentication, but no shift-management controllers or implementation excerpts are present. Model relationships are documented, while the README’s scheduling features cannot be traced to runtime components in the sampled code.
Main entry points: user.rb User · shift.rb Shift · routes.rb Application routes · hospital.rb Hospital
Components 11
Web entry
- Application routes
config/routes.rb - Home page action
app/controllers/static_pages_controller.rb - Request protection
app/controllers/application_controller.rb
User identity
- User
app/models/user.rb - Auth configuration
config/initializers/devise.rb
Scheduling domain
Persistence
- Relational database
Other components
- Web user
Connections 16
- Web user → Application routes: sends request
config/routes.rb - Application routes → Home page action: routes home
config/routes.rb - Application routes → User: enables Devise routes
config/routes.rb - Home page action → Request protection: inherits from
app/controllers/static_pages_controller.rb - User → Auth configuration: uses Devise
- User → Shift: has many
app/models/user.rb - User → Blackout: has many
app/models/user.rb - Hospital → Shift: has many
- Shift → User: belongs to
- Shift → Hospital: belongs to
- Blackout → User: belongs to
- User → Relational database: stores account
- Hospital → Relational database: stores records
- Shift → Relational database: stores records
- Blackout → Relational database: stores records
- Postal → Relational database: stores records