How to be single

How do you work on being single after being in a relatiomship for almost 2 years. Like i dont have many friends but ill work on it. I dont like being alone, but im working on it. Its literally only been a week since ive been broken up with. I miss him of course but i refuse to dwell on it. I want to move on with my life and live. So of course be with friends and family but how do i become comfortable being alone again?