Deployment and external systems
There is no live server. Every student runs the app on a laptop; GitHub holds the code and runs the tests; the class demo runs the latest release tag.
| Environment | Database | Payments | Who uses it | |
|---|---|---|---|---|
| Student laptop | SQLite (database/database.sqlite) | Log file or Mailtrap | Mock gateway, port 9000 | Every student |
| CI (GitHub Actions) | SQLite in memory | Array (not sent) | Faked in tests | Every pull request |
| Class demo | SQLite or MySQL | Mailtrap | Mock gateway, port 9000 | Instructor, Platform group |
External systems
| System | Used by | Direction | Development setup |
|---|---|---|---|
| Payment gateway (mock, behaves like PayMongo) | Payments | Our app creates a checkout; the gateway calls our webhook | php -S localhost:9000 mock-gateway/index.php; API key sk_test_mock, webhook signed with X-Mock-Signature (HMAC-SHA256, secret whsec_mock) |
| Mail service (Mailtrap or SMTP) | Notifications | Our app sends mail | MAIL_MAILER=log or Mailtrap sandbox |
| Queue worker | Notifications | Runs queued mail in the background | php artisan queue:work |
| GitHub + GitHub Actions | All groups, Platform group | Code hosting, reviews, automated tests | One repo per section |
Gateway settings go in .env, which Git ignores.