Nice little nutshell on making a block explorer. I think abe is a pretty popular open source one.
For everyone saying how do I do it. Well, you need to learn how to program and code first

And if building by scratch you really need to know your stuff. Thanks for everyone's input, including nemgun.