My opinion is that buying a bike online before you have significant cycling experience is a mistake - the benefit of a local bike shop is that they can help you find a bike that fits your physical dimensions, level of fitness and intended use...and of course your budget.
Recommended gadgets: pump, patch kit, small tool kit, water bottle, and lights as required - weight just slows you down.