Life is not an end in itself. Your goal is not conformed to this material world in which your body is living. Your goal goes beyond this world of appearances.

We are not content with the state in which we find ourselves; we are always discontented with our lives. There is a reason for this: our existence here on earth is really meant to be transcended. ~ D.T. Suzuki

The meaning of life is to be happy and think positive, refrain from doing evil, to attain the path of enlightenment, to escape samsara, to dwell in unhindered wisdom and absolute peace and joy, to help all sentient beings to also enter the right path and escape samsara, and to eventually become a complete enlightened being, a Buddha.

Enlightenment is realizing the truth about the way things are. By following the teachings of the Buddha, other people can gain enlightenment, too.
There are many different stages of enlightenment.
To attain nirvana is difficult to the extreme. In this world only one person every trillion years manages to attain complete enlightenment and escapes into nirvana. Nirvana is the point in time at which a buddha leaves our world and moves on to the buddha-realms, the buddha-lands, also called Pure Lands.