How can I render all the frames and not 1 frame at a time
Use the render animation button found in the render context of the properties editor (or Ctrl-F12). 

If you are trying to create a video the best practice is to take those rendered images and add them to the video sequence editor as an image strip and then change the render settings to whatever video output you'd like and render the animation again.