How to rotate the object based on the vertex of another object?
Use snapping to achieve this task.

The settings of snapping:


Snap to vertex
Target - Center
Align rotation is enabled.




And move object with holding CTRL:



PS set center of the cone object in bottom of it.