Heat oven to 375°.
Cook bacon in a large flame-proof baking dish over medium-high heat until crisp, about 7 minutes. Remove bacon to a cutting board and coarsely chop. Add onion to baking dish, reduce heat to medium and cook 5 minutes, until golden brown.
Stir in beans, root beer, ketchup, vinegar, brown sugar, mustard, hot sauce and salt. Add chopped bacon. Bring to a simmer and transfer dish to oven.
Bake, uncovered, at 375° for 45 minutes. Serve warm.