I'm unable to setup OpenMRS webapp on my system

Hi, @gauravdewat have you taken a look at OpenMRS SDK. I think you shuold try installing it and follow the steps to build a server which you can add mod to and consume in the browser. Take a look this as well.