A good start is the NHRA rules, which if you look around you can download.
Here, the "general" rules
nhra.com/UserFiles/file/General_Regulations.pdf
If the battery is in a plastic box, you must have a steel or aluminum firewall between the trunk and passenger compartment.
Otherwise, you can put the battery in a VENTED (NHRA approved?) steel box.
The battery must have a cutoff, and it must be in the hot lead, not the ground. The reasons for the complications in the diagram (Crackedback also has a good one) is so the alternator will not cause the engine to "run on."
In any case read the rules