Chemical Pregnancy

My wife and I have been TTC for almost a year. I took a pregnancy test on Wed this week which would have been 1 day early for my period. It came back positive! So I tested again , positive with two dark lines !! We couldn't believe it and we're on top of the world! We told her parents and sister along with a couple of friends (we didn't want to for sure announce until a doctor confirmed) I tested again on Thursday, and still got two lines but we're a little lighter. Went to the dr and they said my results are negative and that I had had a chemical pregnancy. We are devastated! I didn't even know this is a real thing . Just sad to experience, and such a roller coaster of emotions in only a couple days. 
How do you deal with it ? How do you move on ?