ps. it's actually interesting concept, you could have something similar to medieval catapult on the Moon and throw rocks on Earth which would be equivalent to nuclear explosions, no?
Just launching cargo is a lot easier, we already know how to accelerate things to the speed of a bullet in a variety of ways. Scaling up a railgun to handle heavier bullets is comparatively easy.
Cargo could be made to go much, much faster.
https://www.kickstarter.com/projects/391496725/the-slingatro...
For alive payloads, the rail becomes longer.
The advantage is that on the moon the low gravity and no atmosphere make megastructures like this easier to build. Energy is also no concern either, you have pure unfiltered sunlight for about 15 days each month on each side of the moon.
Esp. the moon because you can use a cannon to launch spacecraft so you don't need to use fuel on it (if you'd do it with a magnetic cannon you could do it entirely with solar arrays).