Hook positive and negative motor leads to their respective battery terminals. Spin motor shaft very fast to generate electricity. Do not use "tiny RC motor" use a 540(550) size motor or larger, the other important number, denotes the number of turns. The lower the number, the more juice it'll put out when spun at a certain speed. Thus a 27 turn puts out more juice than a 50 turn, despite both being 540 size motors.
You will need to mount some kind of friction roller to the shaft, then secure the motor to your bike, with the roller against a wheel. Horizon hobby makes decent electric motors under $20, but an actual bicycle dynamo generator will run you about $12, for the genny, a light and mounting gear.
Good luck, a 550 size RC motor could put out lots of juice, and last a really long time too.