Edit and generate dated schedules for all Rocket Academy Courses.
We currently manage schedules by editing relevant schedule template JSON files in src/data/schedule-templates
and re-generating the relevant batches' schedules using the Generate Schedule Data File interface in the Batch tab of localhost:3000/#/admin
when running the app locally. Rocket recommends only updating the templates and not batch-specific schedules directly if possible, because the latter makes it difficult for Rocket to make cross-batch changes by updating templates and re-generating each batch's schedule (local batch changes would be overwritten).
To edit/generate a batch schedule, e.g. FTBC6:
- Clone scheduler repo locally
- Edit the FTBC3.x or PTBC3.x template JSON file (in
src/data/schedule-templates
) to how we want it to be. If you are making changes that should apply to new batches but not older ones, duplicate the latest template and increment the version number. - If you are generating a new PT course ensure the the course starts on the correct day.
courseStartDaysOfWeekIndex
at the top of the schedule template file (e.g.ptbc3.0-schedule-template.json
) must refer to the correct start day.0
is Tuesday,1
is Saturday. - Check holidays.json to ensure holidays (public and company) that would occur during your course are included, such that the scheduler does not schedule course days on these dates.
npm start
to run scheduler locally- Navigate to
localhost:3000/#/admin
, enter Start Date (e.g. 10 Jan ’22), Batch Number (e.g. 6) and Course Type (e.g. FTBC), and click Download Schedule. - Copy the downloaded schedule into the
src/data
folder - Verify
src/App.js
is referencing the correct file that we just copied tosrc/data
when rendering the relevant batch’s schedule - Verify the schedule changes are as expected at
localhost:3000
- Commit and push changes to GitHub, GitHub will automatically deploy changes to
schedules.rocketacademy.co
.