After all, it's "the greatest city in the world," as the characters repeat over and over again. "The revolution's happening in New York," goes a song in the first act. "History is happening in Manhattan."

But, arguably, more history was happening in Philadelphia, though you'd barely know it from Hamilton. Huge chunks of the musical are set here, from the Reynolds Affair, the country's first sex scandal, to the cabinet battles where Alexander Hamilton and Thomas Jefferson square off in verse. Hamilton lived in Philadelphia while he served as Treasury Secretary from 1790 to 1795. (Plus, Leslie Odom, Jr., who won a Tony for his portrayal of Aaron Burr, is from East Oak Lane.)

The musical's creator, Lin-Manuel Miranda, even jokingly apologized  in his commencement speech earlier this year at the University of Pennsylvania for leaving Philly out of the musical.

And though Hamilton-related sites in New York and New Jersey have seen renewed interest since the musical exploded on Broadway, Philadelphia hasn't exactly capitalized on its own Hamiltonian heritage.

Enter Catherine Price, a writer and New York native who moved here in 2011 and fell in love with the musical last year.

"I was thinking about how, in New York, they still have 'Sex and the City' tours -- from a fake show that ended 10 years ago. How is it possible that Philly doesn't have a Hamilton tour?" she said. "It's the traditional story of Philly not bragging about itself."

For the last month Price has been working on a walking-tour app that takes users through Hamilton's Philadelphia.

The app was finalized this week, to coincide with the release of the PBS documentary "Hamilton's America,' which airs Friday at 9 p.m.

The tour, a $4.99 download, wheels through Old City, past the First Bank of the United States -- its creation was one of Hamilton's toughest political fights -- to the Treasury Secretary's house on Walnut Street, to the approximate location of the home (the house itself is long gone) of Maria Reynolds, Hamilton's mistress and one of the players in the aforementioned sex scandal.

Each stop is linked to a song from the musical — at the First Bank, it's "Cabinet Battle No. 1," which reimagines Hamilton and Jefferson's political animosity as a rap battle. At the site of the old Treasury office — which no longer stands -- you're encouraged to listen to "Non-Stop," the explosive first-act finale where Hamilton ascends into the upper echelon of American politics.

The Independence Visitors' Center will promote the app at its headquarters on 6th and Market Streets.

Twenty percent of the proceeds from the app will go toward the First Bank of the United States, which has been closed to the public for years and needs $25 million in renovations to re-open.

The app can be downloaded by searching "Alexander Hamilton Walking Tours" in the iTunes or Android app stores.