I have created a Project in Java which helps generate HTML's from an Excel Sheet & a template file. I am trying to understand, if I want external users to use this facility from an external service, then what should be the thought process to choose an infrastructure for setting up this service. By infrastructure I mean that, which one of the below things should I do:
- Setup a Server (Apache). Expose service as an API using POST request & Servlets.
- Convert this into a Java Script Based library and use client side processing power to generate the HTML's from the browser. (This will save the hassle of maintaining my own server)
In short, just trying to understand if its right to choose a frontend technology for doing stuff which would primitively have been done in the background.