For setup instructions, see the fabric wiki page : https://fabricmc.net/wiki/tutorial:setup. It has useful setup instructions pertaining to specific ides.
If you have not choses an IDE, Intelloj IDEA and Eclipse are both well known, well used ides popular in the modding community.
This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.