how to run LibreOffice in the own web application ?

I want to run LibraOffice in my own web application from a button click. Can i know how should i accomplish this? I really appreciate if someone guide me with a tutorial link