Express.js is a web application framework for Node.js. It provides various features that make web application development fast and easy which otherwise takes more time using only Node.js.
Creating an instance of Ghost CMS in Docker
Node.js EventEmitter
Node.js allows us to create and handle custom events easily by using events module. Event module includes EventEmitter class which can be used to raise and handle custom events.
Manage your XenServer or XCP-ng Pool with Xen Orchestra… inside Xen Orchestra!
We use Xen Orchestra as the web interface for students to create and manage VMs via our XCP-ng Pool in PJ Carrolls. The login is found at https://xoa.comp.dkit.ie and most students are familiar with this excellent resource. But what if a student wanted to mange their own pool of virtualisation servers in a Specialist Lab, running either XCP-ng or XenServer?
How to Dockerise a Node.js application
Accessing Your Docker Containers on your Private Network
This tutorial follows on from Using Pre-Built Docker Container Templates and is part of a series. If this is your first time here, maybe start at the beginning.
Using Pre-Built Docker Container Templates
This tutorial follows on from Creating a Docker Container from a Pulled Image and is part of a series. If this is your first time here, maybe start at the beginning.
Express.js Web Application
Express.js provides an easy way to create web server and render HTML pages for different HTTP requests by configuring routes for your application.
Value Interpolation in JavaScript Code using Pug
Interpolating values is helpful if you need to pass a server-side variable to client-side JavaScript (or other languages that require it).
In the case of variables, numbers, strings, and the like, you can pass these types of variables directly into your JavaScript with bracket syntax plus an explanation point (so that the code inside the brackets is not evaluated.) This is useful for parametrizing JavaScript code that require something from your server.
Server Side Variable Interpolation with Pug
It’s possible to pass variables from your server into Pug for dynamic content or script generation. Pug templates can access variables passed to the res.render
function in Express (or pug.renderFile
if you are not using Express, the arguments are identical).