Blog

Archive for the Node.js Category


Express Code Used for Form Submissions
Posted on August 21, 2019 in Expresss, Node.js by Matt Jennings

When NOT using body-parser the two lines of code must be used for form submissions:


Node.js module.exports and require Examples
Posted on July 22, 2019 in Node.js by Matt Jennings

band.js Output

run.js Output

console.log Output Using Node.js


URL Parameters in Express.js
Posted on August 22, 2016 in Node.js by Matt Jennings

Example of a URL parameter that uses Express.js

Website Output if you go to example.com/polls/1234

1234


Passing An Array of Objects to a View Using Express Handlebars and Control Structures in the View
Posted on August 6, 2016 in Node.js by Matt Jennings

/server.js File Example

/views/layouts/base.handlebars File Example

/views/home.handlebars File Example


Minimum JS Required to Get Express Handlebars Running for Node.js
Posted on August 6, 2016 in Node.js by Matt Jennings

Steps

Install the following modules, using the commands below and pressing Enter after each one:

Create a server.js file inside your root
Read more…

To Top ↑