Powering a 5V DC Step Motor

I am trying to figure out how to power a 5V DC step motor using this tutorial: 28BYJ-48 Stepper Motor with ULN2003 driver and Arduino Uno – 42 Bots. The tutorial recommends that the step motor has its own power source. I was going to use a 9V battery. What is the best way to go from 9v -> 5v?
Also, looking at THIS tutorial says otherwise: https://www.hackster.io/ingo-lohs/first-test-super-starterkit-from-elegoo-stepper-motor-5v-4b92dc. Can I hook the step motor directly onto the uno r3?
The step motor I have is: 28BYJ-48.

You need a stepper motor driver module or shield. The voltage depends on your motor type, voltage or current controlled.

Search the forum or tutorials for stepper motor basics.

Don’t use a 9V battery, they can’t supply sufficient current even if you’d use a buck converter to step down the voltage.
That motor works fine at 5V and the ULN2003 driver IC; use a spare mobile phone charger or so to power it. 1-2A is enough.