Restflix

Scope: Code new site design and move from a slow WordPress environment to AWS LAMP stack. Setup full advertising integrations with Rakuten, AppsFlyer, and the Powr.TV Platform.

Restflix is a revolutionary streaming service designed to help users fall asleep faster and rest better. With 20+ personalized channels full of meditative music, bedtime stories, and calming visuals designed to gently ease users into a productive night’s sleep.

Prevail Key Co. Logo

Site Uplift

While the original site was only a year old, and the design wasn't bad, it was built within a WordPress theme. Since I was tasked with moving the website completely off of WordPress, the owner of Restflix also wanted to commission an updated design well.

Restflix Website

WordPress is overkill for this website as it did not need a CMS platform. The site was better off serving as static HTML files in a resource-light setup. After the design was cut from a PSD and coded in Bootstrap 5, we switched from the old WordPress environment to an AWS Lightsail LAMP stack. The website speed increased by over 350% just by making the switch.

Partner Integrations, DNS, & Mail

I set up Google Tag Manager with custom synchronous/asynchronous javascript loading of partner tracking integrations, depending on the partner's requirements, and then carried those integrations onto Powr. TV's Restflix instance after moving it from restflix.unreel.me to watch.restflix.com to allow for any cross-domain ambiguities. Fortunately, Powr allows for Google Tag integration, so it made it very easy.

Finally, the contact form on the site needed to send all inquiries to a specific e-mail address on a successful submit. To do this, I used PHP Pear's Mail class and tied it into Google Workspace's Gmail SMTP servers so that all inquiries use Gmail for sending. Gmail's SMTP is effectively a free or very low-cost (depending) way to send e-mail on a server without going through the complexities of setting up an independent mail server.

require_once "Mail.php";

$headers = array('From' => $from, 'Reply-To' => $email, 'To' => $to,'Subject' => $subject);

$smtp = Mail::factory('smtp',
  array('host' => $host,
    'port' => $port,
    'auth' => true,
    'username' => $username,
    'password' => $password));

$mail = $smtp->send($to, $headers, $body);

  if (PEAR::isError($mail)) {
    echo($mail->getMessage());
  } else {
    header("Location: /contact-success");
  }

Technologies Used

Have a web project and need an expert you can trust?

I am available for hourly, per-project, short-term, and long-term contract work.

Contact Me