It depends on your budget and your willingness to work on it, but it can be done more than one way. Two main ways would be video stitching: What Is Video Stitching ? | Reelnreel Video Marketing or buy a 360 degree camera. Insta 360 gets good reviews; I personally own a 360 Camera Xiaomi Mijia Mi Dual-Lens Sphere WiFi Waterproof 3.5K Action Camera
If you want to do it yourself, it will make a cool project, but when all is said and done, your final product will likely look like a project. Maybe you can get creative with your camera placement/mounting, and perhaps even do away with wires, but it will still be 2 separate cameras, 2 separate sd cards, 2 separate batteries to charge, and extra effort getting your videos stitched. You also might need more than 2 cameras to get the overlap you need. At this point, the cost in your time as well as the hardware might erode your will to proceed with this route.
If you spend the money and get a pre-packaged product, a lot of headaches will have been solved for you and it will be in a small single package. It will likely be accompanied with stitching software and make it easy for you configure and handle the final product.