For starters, there is an Example Mod available for download at the official tModLoader thread (https://forums.terraria.org/index.php?threads/1-3-tmodloader-a-modding-api.23726/), which contains the bare framework of a mod, as well as a bunch of examples of various kinds of items, tiles, NPCs...