For setup instructions please see the fabric wiki page that relates to the IDE that you are using.
This template adds some pre-made things like folders and files, but the main thing is that it already comes with the cloth config and the modmenu together, and also with a practical way to update both
This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.