Looking at the equation of a reaction, how do we know it is endotermic or exotermic
You are correct. If you have enthalpies of formation of each reagent and each product then you sum up enthalpies of each product multiplied by stoichiometric coefficient and subtract enthalpies of each reagent multiplied by stoichiometric coefficient. If the result is negative then the reaction is exothermic and vice versa.