The Attack on Niima Outpost was lead by Zeke Jaxus in an effort to lure Rey into a trap since she goes there during her scavenger years on Jakku.
During the battle, the militia had seven very outdated vehicles, five Armored Assault Tanks, and two ARC-170 starfighters, they were all taken down.
Despite the town being raided, a portion of the largest fleet in the galaxy including two force-sensitives come to Rey's homeworld. Despite there being a hundred fighters, the TIE/sr superiority starfighter was enough to face off against them.
The loss of the prototype TIE Supreme caused the Krennic to fire her superlaser, obliterating many ships except, a couple.