Category: Knowledge
-
Dynamic content loading on web pages with Ajax & Express (1)
Dynamic content loading involves updating or loading content on a web page without the need for a complete page refresh. JavaScript plays a crucial role in enabling dynamic content loading by facilitating the retrieval and manipulation of data asynchronously. This approach offers several benefits: AJAX (Asynchronous JavaScript And XML) is a well-established method for achieving… Read more
-
Static HTML with express route
Example 1 To create an Express route in a file named index.js that handles a HTTP GET request for the path /lastvisit and responds with a plain text containing the timestamp of the previous visit. If a previous visit timestamp exists, it will be sent as plain text in the response. Otherwise, it will respond with “First visit”. Content… Read more
-
Install Node.js and Express on Orange Pi Ubuntu
Node.js is a runtime environment for executing JavaScript code on servers and across different platforms. It is open-source and widely used for developing applications on both the front-end and back-end. Its official package manager, npm, serves as a repository for software packages. Node.js enjoys popularity among developers due to its extensive community of contributors and… Read more