It took a weekend to build a proof of concept, then I released it to the public. As I improved it, the user base grew slowly. Then, a year later, I was able to quit my job to pursue it full-time. If you're curious, I have an Interview [https://www.indiehackers.com/businesses/insomnia] on Indie Hackers with more detail.