Tutorials on Web Development, Programming, and Web Design

Using MongoDB with Express

In Tutorials

Starting with the code we did in the last tutorial, we will now demonstrate using MongoDB with Express on Node.js. 1. First we had set up a mongolab database called “firstdb” with a...

read more

Tutorial using express.static

In Tutorials

The express.static middleware let user access a public directory.  Continuing from our last tutorial, we add the statement … app.use(express.static(__dirname + ‘/public’)); And...

read more

Tutorial using ejs with Express

In Tutorials

In this tutorial, we will use ejs with Express and Node.js. ejs is embedded Javascript template engine suitable for use with Express applications on Node.js. We assume that you have Node.js...

read more

Using placeholders in ExpressJS routing

In Tutorials

Starting with the code from our first ExpressJS app linked here, we now want to use placeholders in ExpressJS routing.  Let’s add the following code  … In the route...

read more

Our First NodeJS / ExpressJS app

In Articles

This the code for our first NodeJS and ExpressJS app … You can put this code in either app.js or index.js.   But of course your package.json file should reference the correct filename...

read more

Using Swig templates with ExpressJS

In Tutorials

In our last tutorial, we were only outputting strings with res.send.   But we want to output HTML page instead.  In real-world application, we would use a templating engine like Jade or Swig....

read more

Learn Web Tutorials is hosted by Hostmonster and design based on Wordpress template by Elegant Themes
All contents are opinions and are copyrighted and may contain display ads and ad links for which site may receive revenues from.
See Terms of Use and Privacy Policy.