Skip to content
Jay Nguyen
← All projects

PTE Target

Live

A Vietnamese-language PTE practice platform with AI scoring, running on a LAMP stack I host and administer myself, exposed publicly through Cloudflare.

PHPMySQLAI

The problem

PTE Academic is an English test taken by many Vietnamese students and migrants for study and visas in Australia. Practising for it means speaking and writing answers and getting honest feedback on them, and feedback is the expensive part: a human marker does not scale.

I wanted a practice platform that is Vietnamese-first, built for an Australian exam, and able to score spoken and written answers without charging more every time a learner practises more.

What I built

PTE Target is a live practice platform for the PTE exam with the interface and guidance in Vietnamese.

  • Practice for spoken and written tasks, with AI scoring and feedback on each answer.
  • Learner accounts and a practice log, so progress is visible over weeks, with quotas that keep usage fair on fixed capacity.
  • Shareable result links, so a learner can show a teacher or a friend how an attempt was scored.
  • Documentation in both languages. It is a product built for two markets, not a translated page.

How it works

It is deliberately an ordinary stack: PHP and MySQL on Linux, behind nginx, rather than a framework I would have to babysit. The unusual part is where the work happens.

  • Scoring runs outside the web request. A separate long-running worker service picks up submissions and scores them, so a page load never waits on inference.
  • It runs on hardware I own and administer, behind Cloudflare. The origin address is not published, TLS is handled at the edge, and static assets are answered by the CDN before they reach the machine.
  • Nightly backups of the database and uploads, written to a second location. I have restored from them and brought the application up against the restore.

The reasoning for self-hosting is written up in a blog post on what it actually costs to host it yourself. The short version is that the expensive request is the inference, not the page, and I did not want a bill that rises with engagement.

What I learned

Decide your tolerance before the outage. It is a practice platform, not a payment processor, so a Saturday-night failure can wait until morning. That is only a comfortable position because I chose it in advance.

A backup is not a backup until the application runs on it. The first restore I tried worked, and the application did not. Finding that out on a quiet afternoon, on purpose, is the entire point of the exercise.

Own the cost model, not just the server. For a workload that gets more expensive as it succeeds, fixed capacity changes what the product is willing to encourage. The trade is a hard ceiling, and you are the one who has to notice when you are close to it.

Next: the shared result links and practice quotas mentioned above, and keeping the worker's failure handling as boring as the rest of the stack.