I like melee in fallout 4! It's better than Fallout 3 or New Vegas because the map is much more cramped. Snipers ain't worth crap here!
First, the specials.
Strength : 10 before bubblehead for a total of 11, because more damage is always good? Craft armor, craft weapon, big leagues and rooted are a must!
Perception : 1 or 4 to 6, if you only want to pick lock, or if you want night vision as you stealth around with more energy resistance, and maybe just one point in demolition to craft bottlecap mines. You'll get your score to 7 quick with the easiest bobblehead to find anyways. Put only 1 if you don't mind the no lock picking part, you'll always get 95 % in vats cuz you're right in their faces anyways!
Endurance : 1 to 10. Doable with only 1 endurance and the toughness perk, raise it higher with spare points only for the HP. Maybe you can try to get that one to 11. Maybe.
Charisma : 3, for the lone wanderer perk. 30 % damage resistance is crucial! The charisma bobblehead will raise it to 4 to boost your dog if you ever want to later on.
Intelligence : 6 for hacking terminals and the science perk, which will allow you to craft better weapons and armors. The bobblehead will raise it to 7, which will allow you to get chemist ; 1 point to craft the best drugs, more just for the extra duration if you want.
Agility : 1 to 8 ! It's for sneaking, VATS and the blitz perk. Sneaking in melee is doable, but only with a considerable point investment and a high level and without a companion. It's much harder than with a muffled snipe or shotty, that's for sure. Don't invest sneak points until at least lvl 25. VATS is very important in melee because there's no blocking going on there, and the blitz perk is just plain awesome to close in all the distance you want. You can skip sneaking entirely if you want, you'll still be able to sneak a little if only to assess the situation before engaging, but melee fights will be wicked hard without a good VATS to smash some of them.
Luck : 1 to 10. Avoid entirely or get Bloody mess, mysterious stranger, better critical, critical banker, grim reaper sprint, four leaf clover and the best one, ricochet. Luck works a lot better with an unarmed build rather than a melee weapon build.
Tips :
Use other weapons when needed. Keep mines, bottlecap mines and cocktail molotov for tougher fights, and a snipe to deal with long range stuff like turrets on houses. Deathclaws will rip you in melee if you just walk up to it without a plan, no matter how melee oriented your build is! Don't try to sneak up on 5 monsters ; just toss that grenade instead, it's just better.
Drug yourself! Become a junkie. Otherwise you're gonna die! Jet to slow down enemies, Med X to absorb damage, Psycho for both defense and offense, and etc. Those you can craft are your best friend, and your dog won't judge you for it! Take notes of all the needed items to craft your favorite drugs and stash them.
Hide in corners and let them come to you. Sometimes, it's the best thing to do.
At low level, use everything you got. You can't just smash your way because your build isn't shining yet. Use some ammo
If you go unarmed instead of with a maul, get Agility and Luck high, because then you'll crit and stun everybody all the time using VATS. Only works at really high level though. Iron fist at 5 ( 1 STR lvl 46 ), Gun Fu ( 10 AGI lvl 50 ) and all Luck crit related perks is the combo.
Keep a slow [censored] weapon and a really quick one on you. You might need to switch to a quick one if you're surrounded, and the quick one is usually only 2 pounds anyways. The slow and heavy hitting melee weapon is the way to go unless you got a specific idea in mind.
You can sell ammo later on. 5 000 cheap bullets is 5 000 caps, and you won't miss those!
The lone wanderer with a dog allows you the most carry weight possible in game.
Avoid dangerous places until later. Avoid ponds and lakes because of nasty bugs. Take on humans first, super mutants second, nasty critters third.
Companion perks to get, in order of importance :
Preston Garvey gives you the best one around, damage and defense when outnumbered ;
Paladin Danse gives a fun damage buff that's very useful against monsters ;
X6-88 for more energy resistance ;
Other fun companion perks you can skip if you want :
Codsworth for more energy resistance ;
Cait if you use VATS often and you have a high Endurance score ;
Curie for a HP cure but put it low on the priority list ;
Deacon if you like to sneak around, but you'll probably 1 shot everything already anyways ;
Strong for more damage when low on hp ;