For setup instructions please see the fabric wiki page that relates to the IDE that you are using.
To run and build the mod utilizing a CLI, cd into the current directory and running
gradlew.bat clean
gradlew.bat build
This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.
It's just a block.