Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

Draft Forbes Group Website (Build by Nikola). The official site is hosted at:

https://labs.wsu.edu/forbes

5910 views
License: GPL3
ubuntu2004
Kernel: Python 3

JavaScript

This post discusses JavaScript.

Single-Page Applications (SPAs)

Many JavaScript applications require running a server to host parts of the application. A pervasive example are web-pages that use the popular Node.js framework. These require that the node server is running somewhere to serve the page – either on a web-server which is hosting the pages, or on the client's machine if functioning as a stand-alone application.

This means someone must start the node server, either placing a burden on the client (who must now install Node.js and start the server) or preventing the page from being hosted on a static site.

The alternative is to provide the entire JavaScript application through a static web-page and have everything running on the client's web browser. This latter approach is called a single-page application (SPA).