How to develop a site plugin

I have come up with sites describing about how to develop ES java plugins. Can you guys provide me the links if available about how to build a site plugin. I would like to build a site plugin using html with angularjs which invokes the java classes contained in the jar to fetch the data..

Have you seen and the source code of the existing site plugins?