James was an active member of the Order of the Phoenix and he also fought bravely in the First Wizarding War against Lord Voldemort. His infant son Harry was marked by the Dark Lord as his equal after hearing a prophecy that told of the baby growing up to kill him. With the help of traitor Peter Pettigrew, who was the secret keeper of the location of the Potters' house, Voldemort was able to track them down and attempt to kill the whole family. James possessed great bravery, which was another quality of a Gryffindor, and he ran to attack Voldemort without his wand but ended up being murdered with the Killing Curse.
James is be considered a foil to Tom Riddle Sr. He was a pureblood while Tom Riddle Jr was a Muggle, though both of them were well-off. Both were insensitive, but while James grew out of it, Tom Riddle Sr. did not. And while James formed a genuine friendship with three other boys, there’s no indication that Riddle ever made a friendship with anyone.