Given its extraordinary chemical reactivity, there are multiple applications for this substance. Preparing it via electrolysis is the easiest way to go, however we need to use a molten sodium hydroxide electrolyte, as the resulting sodium would react with the water in an aqueous solution. Not that hard to do, as NaOH melts at 318 °C . The temperature is reasonably low to allow the separation of the resulting sodium without spontaneous ignition in air, but extra caution must be exercised as the chemicals involved are highly caustic, especially at high temperatures.
More details and photos here: http://www.pocketmagic.net/2013/04/how-to-make-metallic-sodium/