As others members have said, there's really no exact recipe for this.
After my first and only attempt, more than 10 years ago, I have gotten much better and darkest thoughts only crossed my mind again when I had a bad breakup 4 years ago, but I am past that. In general I am stable now, I do have my ups and down. I have learned to accept that this is how life is, and that the idea of durable happiness is just an utopia. Self-compassion, forgiveness and the will of getting help if needed, I think they help to relieve all the pressure on yourself. In addition, to have goals, whether they're small or big, keeping yourself occupied, being curious and surrounding yourself with people who show they care, you can benefit significantly from all these. But the most important thing, and I know it seems hard to grasp it in the toughest times, as your nickname tells, is to see that little flame of hope. Everywhere. Always. Because there's always an option. Good luck xx