The rest of your life is starting today. You have a job, a large dating pool and an open future. Visualize your future (it might look like a grey void) and give it a smile and it will no longer look scary (this is something that always works for me!). Then go and find a therapist. She'll help you get rid of the depression, to find motivation in your job and to figure out what to do in the next 40 years.
BTW - I found this article to be encouraging: https://www.nytimes.com/2018/05/04/opinion/sunday/how-to-sur...