Long distance

My boyfriend and I got together the summer before junior year started and now we're about to graduate. We've been together for almost 2 years. He is going away to college 3-4 hours from home and im staying and going to our local community college. What are some tips to make the long distance work? We definietly dont want this to end us.