Douglas Adams claimed the answer was 42. But there are other interpretations.
The self-help books are full of advice on how to get meaning in life, but it helps to understand what meaning actually is. Science may be able to provide some answers.
Don't pursue happiness as a goal, instead make sure what you do from day to day provides a sense of meaning in life.