Get framework/library which will do the most of work and run the example from documentation. Then try to make it better suite your needs. (Then fork it or switch to another library).
Of course, if it's not just another wtf blogging/sharing/socializing whatever platform written on Perl or on modern popular web language like PHP haha