Here:
https://github.com/OpenSourceEBike/TSDZ2_wiki/wikiYou can also ask questions here: https://endless-sphere.com/sphere/threads/tsdz2-mid-drive-wi...
The gist is to get a semi recent hybrid or mountain bike (because they have standard bottom brackets) and swap it for the motor.
The battery mounts on the frame where the water bottle typically goes. To flash the firmware you’ll need to build a cable with a STM bluepill.
I wanted a quality battery that wouldn’t start a fire so I got mine from em3ev but if you like gambling it will also work with any Chinese special from aliexpress or eBay or whatever.
The 48V motor will also work with a 52V battery (that’s what I use) after flashing it to open source.
It’s not super difficult and you’ll learn how to maintain bicycles in the process. If you’ve never done it before, take your time and ask questions on the endless sphere thread. Checkout YouTube videos as well for anything you’re unsure about, you’re bound to find a good howto from channels like park tool or syd fixes bikes.
Also note that several us and Canadian cities have community bike workshops where they’ll help you do anything to your bicycle by explaining you how to do it and letting you use their tools to do it. I knew nothing about bicycles but after going there regularly to rebuild my first acoustic bike, I’m now very comfortable doing almost anything myself at home on my own (with YT or the blue book of bicycle repair as a reference)
It’s fun and very rewarding, I strongly encourage you to give it a go!