how to play against black d5 opening?


I can guarantee you that the move d5 had nothing to do with the result of the game.
What lost you the game was blundering material, and getting mated.

I kept it simple, to point out that blacks first move had nothing to do with the result of the game.

Opening Principles:
- Control the center squares – d4-e4-d5-e5
- Develop your minor pieces toward the center – piece activity is the key
- Castle
- Connect your rooks
Tactics...tactics...tactics...
The objective of development is about improving the value of your pieces by increasing the importance of their roles. Well-developed pieces have more fire-power than undeveloped pieces and they do more in helping you gain control.
Now we will look at 5 practical things you can do to help you achieve your development objective.
They are:
- Give priority to your least active pieces.
- Which piece needs to be developed (which piece is the least active)
- Where should it go (where can its role be maximized)
- Exchange your least active pieces for your opponent’s active pieces.
- Restrict the development of your opponent’s pieces.
- Neutralize your opponent’s best piece.
- Secure strong squares for your pieces.
Don’t help your opponent develop.
There are 2 common mistakes whereby you will simply be helping your opponent to develop:
- Making a weak threat that can easily be blocked
- Making an exchange that helps your opponent to develop a piece
Pre Move Checklist:
- Make sure all your pieces are safe.
- Look for forcing moves: Checks, captures, threats. You want to look at ALL forcing moves (even the bad ones) as this will force you look at, and see the entire board.
- If there are no forcing moves, you then want to remove any of your opponent’s pieces from your side of the board.
- If your opponent doesn’t have any of his pieces on your side of the board, then you want to improve the position of your least active piece.
- After each move by your opponent, ask yourself: "What is my opponent trying to do?"

I kept it simple, to point out that blacks first move had nothing to do with the result of the game.
"... For beginning players, [Discovering Chess Openings] will offer an opportunity to start out on the right foot and really get a feel for what is happening on the board. ..." - FM Carsten Hansen (2006)
https://web.archive.org/web/20140627114655/http://www.chesscafe.com/text/hansen91.pdf
Eventually, one may want to look at something like the detailed suggestions, provided by Moret in his My-First-Chess-Opening-Repertoire books.
https://www.newinchess.com/media/wysiwyg/product_pdf/9033.pdf
https://www.newinchess.com/media/wysiwyg/product_pdf/9050.pdf
https://chessbookreviews.wordpress.com/tag/vincent-moret/
Opening Repertoire 1 e4 and Keep it Simple 1.e4 are somewhat similar sorts of books.
https://www.newinchess.com/media/wysiwyg/product_pdf/7819.pdf
https://www.newinchess.com/media/wysiwyg/product_pdf/9068.pdf
Openings for Amateurs by Pete Tamburro (2014) combines explanation of principles with starting opening suggestions. Of necessity, his opening descriptions are less detailed (than those of Moret) because he tried to offer choices to the reader and give some indication of how a player might choose what to try.
http://kenilworthian.blogspot.com/2014/05/review-of-pete-tamburros-openings-for.html
https://chessbookreviews.wordpress.com/tag/openings-for-amateurs/
https://www.mongoosepress.com/catalog/excerpts/openings_amateurs.pdf
Most of the time, one faces a position with no knowledge of a specific move indicated in a book. One has to accept that as part of chess, and think of opening knowledge as a sometimes helpful aid. After a game, it makes sense to try to look up the moves in a book and see if it has some indication of how one might have played better in the opening. Many opening books are part explanation and part reference material. The reference material is included in the text with the idea that one mostly skips it on a first reading, and looks at an individual item when it applies to a game that one has just played. Resist the temptation to try to turn a book into a mass memorization project. There are many important subjects that one should not neglect because of too much time on opening study.
"... Review each of your games, identifying opening (and other) mistakes with the goal of not repeatedly making the same mistake. ... It is especially critical not to continually fall into opening traps – or even lines that result in difficult positions ..." - NM Dan Heisman (2007)
https://web.archive.org/web/20140627062646/http://www.chesscafe.com/text/heisman81.pdf
By the way, after 1 e4 d5, the usual continuation is 2 exd5.