Maximize your happiness while minimizing the suffering you cause. You will cause suffering, even if unintentional, this is the human condition. “Mindful hedonism” if you will.
Life has many chapters. Celebrate the joy, happiness, and success there was, mourn your losses and failures, then move on. This too shall pass.