I've build my first ebike a few months ago. I went for a 1000w Bafang mid drive geared motor with a 48v 20a battery, on an old used Peugeot mountain bike. Adding some new/used bike parts (wheels, tires, chain and rear gear), total project cost arrived at C$1800, less than half the price of a new ebike with similar specs.
Considering my weight, 20 to 23 kph is my speed of choice in pedal assist mode, which is quite safe. It does extends my range a lot compared to other use cases.