Traverse Town is the opening area of Kingdom Hearts, and clearing it is mostly about exploring every district and triggering the right encounters.
Begin by visiting each area you can reach. Move between locations like the Alleyway and the Gizmo Shop until you have run into Goofy and Donald about three times and seen all the districts.
Once you have covered every area, return to the First District, where you will face Leon. Winning or losing does not matter here, though winning earns you experience. Yuffie then appears, and the group is taken to the Green Room. Speak with Leon to leave the room; a Heartless will show up and everyone leaps out the window to fight.
Head to the Third District to reunite with Goofy and Donald and defeat a large boss Heartless. Afterward, the party returns to the First District. Donald teaches you the Fire spell and Goofy gives you the Dodge Roll ability, completing the level. Feel free to explore afterward, watch for Blue Trinities on the ground, and try using Fire on the door marked with the Fire symbol in the Third District.