China seems to be making progress.
https://www.nbcnews.com/news/world/these-chinese-military-in...
https://www.nbcnews.com/news/world/these-chinese-military-in...
1. Create a railgun as powerful as you desire, then develop the tech until it is suitable to go on a ship.
2. Create a railgun suitable to go on a ship, then develop the tech until it is as powerful as you desire.
The Chinese railgun right now isn't any better than conventional guns.