Redesigned home page with the game preview banner

Odds Shark: Drupal 7 to Drupal 9 Rebuild

Odds Shark was a sports betting odds, picks and news site, run in several languages for bettors in North America and beyond. Contracted through The Well in Halifax, I spent over two years on it for Resulta: first keeping the live Drupal 7 site moving, then as a senior developer on the team that rebuilt it on Drupal 8, launched it in April 2022 and took it to Drupal 9.

Dates
Nov 2020 – Jan 2023
Client
Odds Shark (Resulta)
Role
Senior Drupal developer (contract)
  • Drupal
  • React
  • MySQL
  • PHP
  • JavaScript
  • Docker
oddsshark.com (now part of Covers) (opens in a new tab)

The challenge

Almost every page on Odds Shark was live data: odds from many sportsbooks, scores, computer picks, public consensus and stats across every major league, all fed from an odds API and changing by the minute. On top of that, the site ran in several languages and regions, each with its own rules for which sportsbooks and offers could be shown.

The business needed two things at once: the Drupal 7 site kept running and growing while it was still the live site, and a ground-up rebuild on Drupal 8 that matched it page for page, gave editors control of their own layouts, and could take a full redesign after launch.

What I did

  • Kept the Drupal 7 site moving: with one other developer, ran the live site through its last year, adding new languages and regional versions, redesigning the Computer Picks and Consensus pages, building a home and category page slider, partner matchup templates and region-aware sportsbook calls to action, and shipping core updates through Features-based deploys.
  • Built the new theme and data pages: on the rebuild, I worked mostly in the custom Sass and Twig theme and the data page templates: odds, futures, picks, consensus, power rankings and stats for the NFL, NHL, NCAAB, soccer and UFC, then populated and checked them through rounds of content testing before launch.
  • Gave editors their own tools: Layout Builder sections and custom blocks so editors could assemble pages themselves, Entity Queues to curate the news and video blocks, a reusable FAQ component and Metatag for SEO.
  • Built the 2022 redesign: after launch, I turned the new designs into components: the home page banner slider with predicted score and "Our prediction", the video block, promo offers, featured operator banners, the casino call to action and the footer.
  • Built the matchup page hero: the largest single piece, with team and default per-sport images, the predicted score and pick, and React scores and upcoming-events blocks themed to sit inside Layout Builder. I also fixed React issues in the live odds ticker and feeds.
  • One of the senior developers who saw it through: the team started at around 40 and was thinned down over time to about eight senior developers. I reviewed pull requests most mornings and moved work through a Jira and Bitbucket pull request, QA and deploy workflow, with a Docker-based local environment, per-pull-request review sites and Composer patches for contrib modules.

The result

The rebuilt site launched in April 2022, replacing the Drupal 7 site, and moved to Drupal 9, with the redesign following on the live site through the rest of 2022. Over the project I shipped more than 200 tickets through code review and QA, from the old site's last year to the new one's launch and redesign. Odds Shark has since been folded into Covers.com.

A closer look

Related projects

Have a project like this in mind?

Whether it's a new build, a migration, or something that needs rescuing, I'd like to hear about it.