Topic: History and diff features for a basic wiki app just like mediawiki

Hello,
I am creating a basic app. And i am wondering if somebody can show how to get started with implementing a basic history feature for all the edits on a page and using diff to show the differences between the edits. The same as mediawiki does.

Thanks