How were the statuses of the respective armies of the United States and Mexico at the onset as well as during the Mexican-American War?

How were the statuses of the respective armies of the United States and Mexico at the onset as well as during the Mexican-American War?