Search code examples
javascriptjsonhtmluser-interfacewebserver

Is it possible to build HTML5 applications without a server?


I am working on a hobby project that tests some content available in a remote database mostly Oracle and MSSQL. I really don't see the need for a server as I can do my logic in Javascript and it is an overhead to run the server if it only does:

  1. Hit DB
  2. Return JSON

Is that possible or do I really need a back-end server because of client side restrictions? Basically I am thinking along the lines of Chrome App's in terms of look and feel i.e standalone Windows built using HTML5 but I don't know if all of them have to use a server.

Can I achieve this in Client side itself? I doubt JSON would be possible unless some Database responds in JSON format.


Solution

  • A server is needed only if you use server-based technologies, like PHP and MySQL. So as long as you stay with HTML, CSS and Javascript, you won't need one.