go to like an autozone and see if they will test your alternator or
at least measure the voltage while it's running for about 14.4 volts
if the car starts fine when the battery is charged the starter is probably ok
the battery terminals are a common problem
when the connections to the battery are corroded the alternator can't charge very well and the starter can't start very well either.
it could also be the battery is more than five years old
if a battery has been dead a couple of times for one reason or another and is old, change it. it's cheaper than a tow or being stranded