Longer days and warmer temperatures trigger onions to begin forming bulbs. The sooner they're in the ground, the larger and better the onions will grow. Onions require full sun and grow best on raised beds. But if you don't have raised beds, don't despair. Just add plenty of organic matter to your soil to loosed it up and improve drainage.
Onions require a high source of nitrogen.
A nitrogen-based fertilizer should be applied about three weeks after planting and then continue side dressing with applications every two to three weeks. It would be a good idea to include some bone meal when preparing the soil as it stimulates early bulb formation and root growth. It helps give onions a rapid start. Once the neck starts feeling soft, do not apply any more fertilizer. This should occur approximately four weeks prior to harvest.