Finally managed to set up the web app using spring mvc and angular