There is no "right technique".
There is the technique that lets YOU to show your full potential
Others prefer the Gary Willis technique which means non-bending wrist!
Others prefer the Wooten/Myung technique that means bended wrist and hand rests on the body of the bass, while fingers are straight (Yeah, that's what i prefer too

)
There are also other techniques like Sheehan's 3 finger technique.
(I'm always talking about plain fingerstyle, no slapping or whatever)
See youtube videos of all these and try to mimic.
Using alternate finger plucking for me is very important not only in terms of speed but because it will give u more freedom when playing more complex basslines.
It would be good to start with a teacher but if that's not an option check youtube videos of the names i said. There are others too, that other TBers might suggest
