The most important part of this project is that the wood you use should be very hard. I used Jatoba, sometimes labeled as Brazilian cherry but white oak, hard maple or hickory would work just as well.
I’ll be using a hinge, but not a cheap box hinge, you’ll want something tough enough for a door to swing on.
In the image I used 2″ machine screws, but then later switched to 3/4″. Finally, you can use a dowel to hold your jig in place but a 3/4″ bolt works oh so well.