Keeping a journal in which you imagine and write about the best possible future for yourself or practising to look at the bright side of every situation.
The happiness strategy "Cultivating Optimism" is one of 12 scientifically proven ways to increase your happiness level. It has many facets. The following figure lists 6 of the most important ones.