If it's not grid connected, you can get a way with a lot of stuff in many places. But if you live in the middle of nowhere, you can just buy a lot of stuff on amazon and wire it together in plug and play style.
I was watching a Finnish guy over the weekend on Youtube (handle True North) that recently took his self built solar powered boat from Helsinki to the Mediterranean, via about 3000km of water ways through Germany, Switzerland, France, etc. In the winter! He just got there a few weeks ago. This stuff is easy if you are a bit handy. He used cheap ply wood and epoxy to glue the thing together. I think he has maybe 4KW worth of panels on the roof, a 6KW motor, and about 16kwh of battery if I remember correctly. Mostly he runs the boat at ~3.5KW because the boat's shape actually limits the speed. More power doesn't make it go much faster. The impressive thing here is that this boat is super simple and it works. He charges using solar panels. On a sunny day he arrives with a full battery. On a cloudy dark winter day, he can still do tens of nautical miles. And he only needs a few hours of daylight to charge up his batteries.
I have a similar situation with a smaller system in rural CO (4kw panels, 6kw inverter, 15kwH batteries).
If you get far enough out it ceases to matter.
The (unpermitted, about 25-year-old) shacks I live in never had power and getting an easement was prohibitively expensive. It doesn't impact anyone but me (and potentially my son, who will inherit this mess when I die in 30 or so years).
There are codes here, and codes enforcement. But it's largely complaint driven and I suspect that all my neighbors are in a similar situation.
If I were in town and could get utilities I'd prefer that, but the county won't even pick up the last 1/2 mile of roads to where I am living... maybe if they'd do that I'd consider only building things that are permitted.
You also run the risk of insurance declining your claim due to unauthorized or self-installed electrical work, even if your work wasn't the source of a fire/problem.
I was watching a Finnish guy over the weekend on Youtube (handle True North) that recently took his self built solar powered boat from Helsinki to the Mediterranean, via about 3000km of water ways through Germany, Switzerland, France, etc. In the winter! He just got there a few weeks ago. This stuff is easy if you are a bit handy. He used cheap ply wood and epoxy to glue the thing together. I think he has maybe 4KW worth of panels on the roof, a 6KW motor, and about 16kwh of battery if I remember correctly. Mostly he runs the boat at ~3.5KW because the boat's shape actually limits the speed. More power doesn't make it go much faster. The impressive thing here is that this boat is super simple and it works. He charges using solar panels. On a sunny day he arrives with a full battery. On a cloudy dark winter day, he can still do tens of nautical miles. And he only needs a few hours of daylight to charge up his batteries.