Here's a proof avoiding the structure theorem and using a minimum of general commutative algebra. Let $A$ be a finitely generated abelian group. We will need the small fact that $\mathbb{Z}$ is Noetherian, so subgroups of $A$ are finitely generated, and in particular the torsion subgroup $A_{tors}$ is finitely generated and hence finite. Localizing $A_{tors}$ at each prime $p$ gives the $p$-torsion subgroup of $A_{tors}$, which by the exactness of localization embeds into the localization $A_{(p)}$. But a free $\mathbb{Z}_{(p)}$-module has no $p$-torsion, so $A_{tors}$ is trivial. So if $A$ is locally free then in particular it is torsion-free.
Now it suffices to show that a torsion-free finitely generated abelian group $A$ is free. This can be done explicitly, without the structure theorem, by showing that a minimal generating set is a basis; see Jyrki Lahtonen's answer here.
This argument shows that every finitely generated abelian group is an extension
$$0 \to A_{tors} \to A \to A/A_{tors} \to 0$$
where $A_{tors}$ is finite and $A/A_{tors}$ is (torsion-free, hence) finite free. Since $A/A_{tors}$ is projective this short exact sequence splits, so
$$A \cong A_{tors} \oplus \mathbb{Z}^n$$
which reduces the structure theorem to the case of finite abelian groups; this was done by Kronecker, before the structure theorem for finitely generated abelian groups was proven. The Chinese remainder theorem further reduces the structure theorem to the case of finite abelian $p$-groups, which I think can be done pretty bare-handedly.