It is not really practical to make homemade chocolate, although you can make chocolate flavored confections like syrups or fudge.
The reason is that true chocolate has two main ingredients: cocoa butter (the fat native to the cocoa bean), and the cocoa powder (which is is made by taking cocoa mass and pressing out the cocoa butter). Sweetened chocolate then has sugar, perhaps vanilla and salt, and usually lecithin added.
In order to have the right consistency (hardness) and melting characteristics, your fat would absolutely have to be cocoa butter. No other fat has the unique crystallization characteristics or melting point that cocoa butter does. It is possible to buy cocoa butter, although it is expensive.
The problem is that cocoa powder is not ground very fine, so the product will be gritty on the tongue and not have the same accessibility of flavor. In true chocolate manufacturing, specialized devices called conches are used to grind the cocoa particles down to very small size, to the point where they cannot be felt on the tongue; this is what gives chocolate its characteristic smooth texture together with the cocoa butter.
Conching is not practical in the home.
Your best, and most likely most cost effective bet is to simply purchase chocolate.