I know someone who did 5000W system for around 15,000 in 2018.
Battert/Powerwalls let the solar work when the power goes out. (the dc to ac converters use the 60hz out of the grid to sync. There is no shutoff to the grid so for safety reasons her system shuts down when the power is out).