my-appengineer Courses

Quiz: build the core

Build the coreQuiz8 min10 / 20

Six questions on roles, the core flow, email and iterating with the builder and Claude.

Quick recap

  • Authentication is included; authorisation (who may see and do what) is your design, checked on the server.
  • Build the core flow in thin slices, store times in UTC, and re-check slot availability on the server when confirming.
  • An app sends its own mail through SMTP_* settings from mail_connect_app, never with a password in code.
  • Iterate in five steps: ticket, plan, build, verify (health and logs), log. A deploy accepted is not an app started.

Answer each question for yourself first, then open the answer.

  1. Where do you ask for a change to an app the builder made?

    • In the same manager chat; each change becomes a new build against the same app
    • You start a new app for every change
    • Only by editing the code yourself
    Show the answer

    Correct answer: In the same manager chat; each change becomes a new build against the same app

    The docs say: ask for changes in the same chat afterwards; each change is a new build against the same app.

  2. A role check (owner vs staff) must happen where?

    • Only in the menu, by hiding buttons
    • In the confirmation email
    • On the server, for every request that changes or reads protected data
    Show the answer

    Correct answer: On the server, for every request that changes or reads protected data

    Hiding a button is user experience, not security. The server must check the role and the account on every request.

  3. How should an app you built send its own booking emails through a my-app mailbox?

    • Paste the mailbox password into the code
    • Connect it with mail_connect_app so the app gets SMTP_* settings in its environment
    • Use your personal Gmail login
    Show the answer

    Correct answer: Connect it with mail_connect_app so the app gets SMTP_* settings in its environment

    mail_connect_app gives the app SMTP_* variables; its code reads only those. A password never goes into code or files.

  4. Claude says a deploy was accepted. Is the app running?

    • Not necessarily: check get_app_health, and read get_app_logs if it crashed
    • Yes, accepted means running
    • Only if you refresh the page
    Show the answer

    Correct answer: Not necessarily: check get_app_health, and read get_app_logs if it crashed

    A deploy being accepted does not mean the app started. Health tells you whether it did; logs tell you why it did not.

  5. Where do you store booking times in the database?

    • In the salon's local time as text
    • In the customer's browser time
    • In UTC, plus the salon's time zone to display them
    Show the answer

    Correct answer: In UTC, plus the salon's time zone to display them

    Store instants in UTC and keep the salon's IANA time zone (e.g. Europe/Amsterdam) to convert for display. That survives daylight saving changes.

  6. Which connector permission do you NOT need just to read your app's logs?

    • Read deployments
    • Deploy apps
    • Both are needed
    Show the answer

    Correct answer: Deploy apps

    Read deployments covers apps, URLs, status, health and logs. Deploy apps is only needed to ship, restart or stop.

This course is general information, not personal legal, tax or financial advice. Rules, amounts and dates change: check the official source for your country before you act.