There is more then one answer to this question and its pretty much something that went through everyone's mind at one point.To be honest its more of a opinion question so in my opinion I think the meaning of life is to enjoy it because you dont get a second chance on it and I think its not that good to go through so much hate because time goes really fast and every second counts.
hope that somewhat answered your question.