need help with warlock

I just started up a warlock but don’t really know what I should do with attribute points like maybe 1:1? also any advice on if I should use melee or ranged weapons? any help is appreciated thanks In advance! :smiley: