you need to protect your pieces better, that one is for sure early on you left your knight out in the open.
help

Some thoughts:
8. Bd3 may be better, you are early enough in the game that you should focus on developing your pieces as rapidly as possible, especially since blacks king is stuck in the middle with open lines. f3 lets black create an isolated pawn in the middle, plus its two pawn moves in a row, and he eliminates your only developed piece.
12. Bg5+ leads to some exchanges that improve blacks development at the cost of your own.
17. a4, your queenside is starting to look like swiss cheese, there are holes for blacks knights to fill at his leisure.
20. Rd1, instead maybe you should play Nd5+, as the forced exchanges will reconnect your isolated pawn and open lines to blacks e5 target.
28. d6 seems like the big mistake... your protected passed pawn is your biggest asset, as it will tie down either his king or knight for the rest of the game. I might try h4 to fix the g6 weakness, put the bishop on c2, and start advancing the king forward.
31. Bd1, the pawn on b7 is hanging, you should maybe take it
In the end position, your bishop is cut off from half the board because your pawns are on the wrong color... the knight is the dominating piece here. I'd say a draw for you is a good result. If I'm black, I play for the win with...
41... Nh7
42. Bf1 Nf8
43. Bg2 Ne6
44. Bxe4 Nd4
45. Bf3 Nxb3
Although its probably a draw still.

8.Nbc3 instead of 8.f3 is much better. For instance, 8...Nf6 9.Bg5 Be7 10.0-0-0+ with a huge advantage in development.
10.Bg5+ is not the best move. You have a pair of Bishops, which is a good thing in semi-open position. So trading you black-squared Bishop is not a good idea. 10.Be3 is correct and it prevents Black's natural move 10...Bc5. Of course, he can still try to exanchge Bishops by playing Bb4+, Ba5 and Bb6 but it will cost him time.
12.c4 is a terrible move. It is by far the worst move you made in this game. This move not only gives your opponent an excellent square for his Knight (d4), but also weakens your Bishop considerably. You should have played 12.c3 (to prevent Nd4) and Bc4.
After 12.c4 Black has a clear positional advantage and White has no counterplay.
Hope that helps
please take a look at this live gave i played
i am playing as white
thanks