The economy during the industrial revolution was crazy, but not in a bad way. There were some issues, though our government at the time was considered laissez-faire, meaning it heavily limited its ability to influence, change, or affect the economy. Many companies took advantage of this and created monopolies by buying out other companies or by buying every process in creating their product, known as vertical ad horizontal integration this resulted in some monopoly owners becoming insanely rich. This was eventually fixed by the Sherman Antitrust Act which stopped the creation of monopolies
Railroads played a huge role in the industrial revolution and some scholars argue it would have never happened without them, they were in charge for 30% of the worlds trade at the time, and revolutionized ecommerce, railroads are one of the most progressive inventions ever, and they're still used today
One issue with the industrial revolution was that a lot of people wanted to work, and that allowed employers to lower wages to almost nothing. working 16 hours a day, 7 days a week, to around what is now worth $30, the solution was labor unions. Labor unions protect and win workers rights, making it safer, higher wages, and shorter work time. The three solutions each union used was arbitration, collective bargaining, and strike. These unions worked and made work much safer, with better pay and better hours