Living a "happy" life,ie ,one where everything is always hunky dory,is absolutely impossible. It's inevitable that life will consist of bad breaks,rejections,set-backs, difficulties with living with your friends,family and relatives etc. This is a totally unrealistic goal.
And if you go through life with unrealistic goals and expectations, you are virtually guaranteeing unhappiness for yourself.
The best you can do is to take things in stride and always try to do the best you can in any given difficult situation, ask freinds or family for help, and pray, that is,if you believe in God.
Try to enjoy life whenever you can with recreation,reading, listening to music, or whatever things you enjoy doing.
Also, try to live a life of moderation. Avoid going to extremes in what you do, whether,eating,drinking consuming alcohol etc.
Going to extremes is always very dangerous. If you overeat,you threaten your health. But the same is true if you eat too little.
It's fine to consume alcohol as long as you do it moderately. Drink too much and it can ruin your life.
Eat a sensible,moderate diet. You can eat sweets in moderation; but if you are binging on them all the time, that's very bad.
Be moderate in religion. Yes,attend church or synagogue or mosque, etc, pray and get involved in church activities and projects.
But when you become fanatical and intolerant in your religious beliefs, and want to impose YOUR beliefs and social agenda on others, that's very bad.
The Buddha,Lao Tzu and other Asian philosophers and teachers always emphasized the importance of moderation, or "The Middle Road", as they called it.