How crown-commercial-service/crown-marketplace-legacy works
Crown Marketplace is a Rails application for Supply Teachers, Legal Services, and Management Consultancy procurement frameworks. Buyers answer framework-specific questions and are directed toward suitable suppliers; Supply Teachers also offers branch search and pricing calculations. Separate admin routes support framework and supplier management, uploads, reports, and change logs. The README documents journeys as question steps leading to outcomes. Source excerpts show routing and shared authentication, but not every journey controller or data interaction, so unverified links are omitted.
Main entry points: routes.rb Framework routes · ccs.ts Browser interactions · suppliers_controller.rb Supplier results · branches_controller.rb Supply routes
Components 23
Buyer journeys
- Journey controller
app/controllers/legal_services/journey_controller.rb - Journey steps
app/models/legal_services/rm6374/journey/select_lot.rb - Supplier results
app/controllers/legal_services/rm6374/suppliers_controller.rb - Supplier records
app/models/supplier/framework/lot/service.rb - Framework catalogue
app/models/framework.rb
Supply Teachers
- Supply routes
app/controllers/supply_teachers/branches_controller.rb - Branch search
app/controllers/supply_teachers/branches_controller.rb - Pricing calculations
app/controllers/supply_teachers/calculations_controller.rb - Pricing rules
app/calculators/supply_teachers/temp_to_perm_calculator/calculator.rb - Teacher tools
app/javascript/src/supplyTeachers/supplierMarkupCalculator.ts
Administration
- Admin routes
config/routes.rb - Framework management
app/controllers/concerns/admin/framework_actions.rb - Supplier management
app/controllers/concerns/admin/supplier_actions.rb - Data uploads
app/workers/supply_teachers/admin/data_upload_worker.rb - Reports and logs
app/controllers/concerns/admin/report_actions.rb
Shared platform
- Framework routes
config/routes.rb - Authentication
app/controllers/application_controller.rb - Login providers
app/models/login/dfe_login.rb - Marketplace database
app/models/application_record.rb - Browser interactions
app/javascript/src/ccs.ts - Upload interface
app/javascript/src/shared/adminUpload.ts - Supplier basket
app/javascript/src/shared/basket.ts
Other components
- Buyer
Connections 24
- Buyer → Framework routes: requests pages
config/routes.rb - Framework routes → Journey controller: routes journey
config/routes.rb - Framework routes → Supplier results: routes suppliers
config/routes.rb - Framework routes → Supply routes: routes service
config/routes.rb - Framework routes → Admin routes: routes admin
config/routes.rb - Journey controller → Journey steps: uses steps
- Supplier results → Supplier records: loads suppliers
- Journey steps → Framework catalogue: selects framework
- Supply routes → Branch search: handles search
app/controllers/supply_teachers/branches_controller.rb - Supply routes → Pricing calculations: routes calculations
- Pricing calculations → Pricing rules: calculates rates
- Admin routes → Framework management: routes framework
config/routes.rb - Admin routes → Supplier management: routes suppliers
config/routes.rb - Admin routes → Data uploads: routes uploads
config/routes.rb - Admin routes → Reports and logs: routes reports
config/routes.rb - Framework routes → Authentication: authenticates requests
app/controllers/application_controller.rb - Authentication → Login providers: authorizes login
- Supplier results → Marketplace database: reads records
- Supplier management → Marketplace database: manages records
- Data uploads → Marketplace database: imports data
- Browser interactions → Upload interface: initializes
app/javascript/src/ccs.ts - Browser interactions → Supplier basket: initializes
app/javascript/src/ccs.ts - Browser interactions → Teacher tools: initializes
app/javascript/src/ccs.ts - Buyer → Browser interactions: uses interface