I started doing pull ups and chin ups under a table, lying at an angle so I was only lifting part of my weight, then once I got strong enough
to do the reps I wanted I transitioned to a bar
For a while I was doing them with a backpack full of books as well, but I went back to just trying for really good form.