make a plugin for ue4 project

What are the steps to make a plugin for ue4 projects?