Is Coraline based on a true story?

No.
It is a British-American 3D movie that is based on a fiction novel called Coraline by an English author, Neil Gaiman.