Case study · Sharebite: New stack. No freeze.

Legacy frontend migrated to modern Angular in about two months, without stopping feature development. Led a chapter of 12 developers.

Discuss a similar project
lunch-group.jsAngularJSlunch-group.component.tsAngularillustrative
angular.module('app')
  .controller('LunchGroupCtrl', function ($scope, $http) {
    $http.get('/api/groups')
      .then(res => { $scope.groups = res.data; });
  });
@Component({
  selector: 'lunch-group',
  standalone: true,
})
export class LunchGroupComponent {
  groups = toSignal(inject(GroupsApi).list());
}
Meanwhile in productionLive
Tests passed95%+ coverage
Feature releasedto production
Route migratedAngularJS → Angular
E2E suite greenCypress
Feature releasedweb & mobile
App rebuiltlazy-loaded modules
Tests passed95%+ coverage
Feature releasedto production
Route migratedAngularJS → Angular
E2E suite greenCypress
Feature releasedweb & mobile
App rebuiltlazy-loaded modules
Migration2 mo

AngularJS to Angular migration

95%+test coverage
0 daysof feature freeze
7 apps5 web + 2 React Native
12developers in the chapter
Overview

The short version

The product
Corporate meal benefits in the US

Companies offer food benefits to their teams. Employees order through web and mobile apps.

The challenge
A frontend on an end-of-life framework

AngularJS reached end of support in January 2022: growing risk and slower development.

My role
Chapter Lead of 12 developers

Led the frontend chapter from November 2021, while staying hands-on as a developer.

Approach

Five decisions behind the migration

  1. 01Incremental migration, route by routeThe legacy AngularJS application was migrated to modern Angular area by area, so each migrated part was fully modern while feature delivery continued.
  2. 02Rebuilds where they made senseTwo Angular applications were rebuilt from scratch with a modern architecture, lazy loading, and clear state management, instead of carrying old structure forward.
  3. 03Tests as a safety netUnit tests (Jasmine/Karma) and end-to-end tests (Cypress) protect the important flows. End-to-end tests are especially valuable during a migration because they survive a framework change.
  4. 04Reliable deliveryImprovements to CI/CD pipelines make releases more predictable across applications.
  5. 05Web and mobileContributions to the React web application and development of two React Native mobile apps, under shared engineering standards.
The product

Group meals, on web and mobile

Visit sharebite.com
Sharebite mobile app: group lunch ordering
Why this case matters

Relevant if you’re building

Modernization is a delivery challenge as well as a framework challenge. Incremental migration, selective rebuilds, automated testing, and shared engineering practices help teams continue delivering while architecture changes.

Built with Angular · React · React Native · TypeScript · Cypress

  • Moving off a legacy frameworkStep by step, so the product keeps shipping during the move.
  • A test safety net for big changesUnit and end-to-end tests that survive a framework change.
  • A frontend team that needs standardsShared conventions, reviews and practices across apps.
  • Web and mobile under one standardReact web and React Native apps built the same way.
The full story

Sharebite: Application Modernization & Engineering Leadership

  1. Context

    Sharebite is a corporate meal benefits platform for businesses across the United States. Companies use it to offer food benefits to their teams, and employees order through Sharebite's web and mobile applications.

    The frontend is business-critical: it is how customers and their employees interact with the service every day.

  2. The challenge

    A large part of the frontend was built on AngularJS, a framework that reached end of support in January 2022. Staying on it meant growing risk, slower development, and an increasingly difficult codebase to work in.

    Rewriting everything at once was not an option: the business needed new features to keep shipping throughout. On top of that, the product spans several web applications and mobile apps, so quality and delivery standards had to work across all of them.

  3. My role

    I joined Sharebite in November 2021 and led its frontend chapter of 12 developers as Chapter Lead, while staying hands-on as a software developer.

    I drove application modernization, frontend architecture, and engineering standards across 5 web applications and 2 mobile apps, working closely with product, design, and QA.

  4. The outcome

    The legacy AngularJS application was migrated to modern Angular in about two months, without stopping feature development.

    Two applications were rebuilt with a modern architecture, test coverage across the codebase reached over 95%, and the applications became noticeably faster and more stable to work with and to release.

Open for new projects

Building something similar? Let’s talk it through.

Discuss your project