Back Available for New Project
Client projectWordPress · WooCommerce · Custom web app

Magic Center

A magic shop's WordPress + WooCommerce store, kept in sync with 'Dico's Secrets': a separate app I built in Next.js, where the code from each product's flyer unlocks its secret video.

Role
Development, hosting & maintenance
Type
WordPress · WooCommerce · Custom web app
Status
Live · dico.magic-center.net
Stack
WordPress WooCommerce Next.js PostgreSQL PHP Cloudflare
0printed codes broken in the move
~70days of non-stop guessing to crack one code

The challenge

An aging store on old PHP and shared hosting, and an insecure secrets site that had to be rebuilt without breaking a single code already printed on thousands of flyers.

What I built

  • Rebuilt the secrets site in Next.js and Postgres
  • A signed (HMAC) sync: every product save in the store reaches the secrets site, and a bad signature is rejected
  • The code and video never reach the browser before a correct code, with rate limits against guessing
  • Every printed code and old address keeps working, videos included
  • Moved the store to a dedicated server on PHP 8.5, with daily backups

The outcome

One place to manage products, two sites in sync, and printed codes that still open the right video.

More work

Want something like this?

Tell me what you need and I'll get back to you today.