HDPE doesn't hold thread.
Ranglebox is just easy. Other solution is to use L angle and nut and bolt.

I have seen other solutions , like IKEA Tnuts or other fibreboard/MDF connection methodes.