This is just the first of many steps. The rails span two joists. The solar controller is on the right, and the inverter is on the left:
The plan is to bring the battery wires up through the floor, which keeps the cable run as short as possible to minimize voltage drop. I’ll be using 2-gauge wire, which is quite thick.