How to deal with long distance relationship.

I've been with my boyfriend for over 4 years and I am about to move to a place 3 hours away. And next year he will go oversears for 6 months. 
I see him every day. I don't know how I am going to cope. Any advice would be appreciated please.😓