Learning & study

Build a school schedule app with AI

A native school schedule build brief covering screens, data, access rules and a practical acceptance journey.

Apirex TeamUpdated AndroidiOS
On this page
  1. Screens
  2. Data model
  3. Native features for the school schedule app
  4. Android notes (Kotlin and Jetpack Compose)
  5. iPhone notes (Swift and SwiftUI)
  6. Copy-paste prompt
  7. Acceptance test
  8. Frequently asked questions
4screens
4data tables
150word prompt
2platforms: Android, iOS

A student timetable is useful only if Monday still means the right Monday after reopening the phone. This school schedule brief focuses on recurring classes, homework and exam dates for one learner. Start with private on-device planning rather than a school-wide directory. The first build should establish reliable day boundaries without collecting classmates’ names, attendance records or unnecessary details about children.

Screens

  • Today: Show lessons and deadlines for the student’s selected school day.
  • Timetable: Edit the repeating lesson pattern and term boundaries.
  • Homework: Record assignments, due dates and completion without publishing student work.
  • Exams: List assessments with subject, room and local start time.

Data model

School schedule records and relationships
TableKey fieldsPurpose
classesid (uuid), subject (text), weekday (int), starts_local (time), room (text)Describe a weekly lesson using school-local time rather than a fabricated calendar booking.
termsid (uuid), starts_on (date), ends_on (date), timezone (text)Bound recurring lessons to the intended teaching period.
homeworkid (uuid), class_id (uuid), title (text), due_on (date), completed (bool)Track date-only assignments separately from timed lessons.
examsid (uuid), class_id (uuid), starts_at (timestamptz), timezone (text), room (text)Represent a timed assessment and its original school timezone.

Keep the initial planner local to the student’s device unless account synchronization is explicitly requested. For a backend version, attach an owner identifier to every learner record and enforce row-level security; a teacher role must not automatically see a child’s private homework notes. Review student and children’s data privacy, consent arrangements, retention and deletion with the responsible school or guardian before collecting accounts. Avoid public class rosters and location sharing. Explain whether device backups retain records after deletion.

Native features for the school schedule app

Keep the current timetable available inside buildings with weak reception, including substituted rooms and cancelled lessons. Apply holidays and special timetables before creating alerts; a cancelled chemistry class must not still trigger a room-change reminder.

FeatureAndroid (Kotlin)iPhone (SwiftUI)Notes
School-day timetable cacheRoom periods and dated exceptionsSwiftData recurring lessons and exceptionsKeep the current timetable available inside buildings with weak reception, including substituted rooms and cancelled lessons.
Class transition remindersLocal notifications tied to effective occurrencesUserNotifications for actual school-day periodsApply holidays and special timetables before creating alerts; a cancelled chemistry class must not still trigger a room-change reminder.
Personal timetable handoffSystem share action for a chosen dayShareLink day summaryLet students review the exported subjects and rooms without exposing unrelated assignments or private account details.

Android notes (Kotlin and Jetpack Compose)

Render each day’s periods in a LazyColumn keyed by occurrence ID, preserving a lesson’s identity when its room changes. Keep term dates, alternating-week rules and one-off cancellations in Room rather than encoding the whole timetable as repeated UI labels.

  • Use a Material 3 date selector and a ViewModel that resolves the effective school day before displaying periods. DataStore can retain the preferred week view, but a device time-zone change should not redefine the school’s configured calendar.
  • Schedule reminders from effective occurrences and cancel the matching request when staff publish an exception. WorkManager may refresh a cached timetable opportunistically; it is not a guarantee of a precisely timed class bell or immediate delivery of a last-minute change.
  • On an Android phone, cache an alternating-week timetable, add a holiday and a room substitution, then disconnect. Open the holiday and the next teaching day. Verify cancelled periods are absent, the new room survives relaunch, and a previous reminder is not still pointing to the old room.

iPhone notes (Swift and SwiftUI)

Use NavigationStack to move from week overview to a school-day List and then a lesson detail. Derive rows from the resolved timetable rather than independently expanding repeating lessons in every view, which can otherwise produce inconsistent holiday behavior.

  • SwiftData should retain recurring lesson definitions alongside dated exceptions. Present personal reminder preferences in a sheet, separate from authoritative school updates; changing a student’s preferred alert lead time must not modify the published period start.
  • Create UserNotifications requests with effective lesson-occurrence identifiers and the school-zone start. An imported room change should replace the matching request, while denying alert permission leaves the timetable fully browseable with a clear indication that reminders are off.
  • On a physical iPhone, inspect Friday of week A and Monday of week B around a holiday. Change the phone’s zone, relaunch offline, and compare the first lesson and room with the supplied school calendar. Turn reminders off and verify the day view remains accurate without prompting on every opening.

Copy-paste prompt

Build this yourself 148 words · Android
Create a private school schedule app for Android with Today, Timetable, Homework and Exams. Begin with local persistence and no public student directory. Ask me for the school timezone, teaching term, weekday numbering, holiday handling and whether homework deadlines are date-only. Store classes, terms, homework and exams with explicit relationships. Show repeating lessons only within the configured term, and distinguish a due date from an exact exam start. Ask about student age, consent arrangements and who may access records before proposing accounts or synchronization. Offer real local reminders after permission is granted; keep all planning usable if permission is refused. Handle loading, an empty timetable, invalid times, storage errors and permission denied. Do not add a school integration or home-screen widget implicitly. Acceptance requires adding a Monday class and assignment, reopening to verify their dates, completing the assignment once and checking a denied reminder path on a phone.

Opens Apirex with this prompt in the box. Pick the Android · Kotlin tab before you send.

Acceptance test

Check term boundaries with a class on the final teaching day and another recurrence outside the term; only the in-term occurrence should appear. Enter homework without a due time and confirm the editor never silently changes it into a midnight exam. A failed save should leave the assignment draft recoverable and must not mark the homework as recorded. Before enabling a reminder on a shared family phone, offer a neutral notification title that does not disclose a child’s subject, room or school. When clearing the planner, verify that pending reminders are cancelled as well as removing lesson records.

  1. Set the school timezone and a term spanning next Monday; add a mathematics class with a real room and start time.
  2. Create one homework item due Monday and one timed exam, then verify Today and Timetable place them under the intended school date.
  3. Close the planner completely, reopen it and confirm the class, deadline and exam time match the entries rather than regenerated example data.
  4. Complete the homework, reopen again and ensure it remains completed without deleting its original due date.
  5. Deny notification permission and attempt to enable a reminder; verify an explanation appears while schedule editing still saves, then test deleting the learner’s stored records.

Frequently asked questions

Should I collect the student’s date of birth?

Not for a private timetable unless a defined requirement makes it necessary. Minimize personal information and obtain a specific privacy review before adding children’s accounts or school-managed access.

Can the timetable pull lessons from my school portal?

Only after a separately scoped integration identifies an authorized source and its authentication rules. Manual entry is the initial contract; do not request or embed school portal passwords in app source.

What happens to classes during holidays?

Ask the owner whether holidays suppress a recurring class or shift a rotating timetable. Store exceptions deliberately so a missed teaching day does not silently move every later lesson.

Build this blueprint

The blueprint prompt, ready for your platform. Edit anything before you send it.

AndroidKotlin · Jetpack ComposeReal source on your computer

Opens Apirex with this prompt. Pick the Android · Kotlin tab before you send. The Free plan includes 5 Rex Credits a day.