Request more details:
This course focuses on node.js and the express framework to create a web server or web application. It will use mongodb as the database and will conclude with a brief introduction to the Angular framework. At the end participants will have a good understanding of the MEAN stack (Mongo, Express, Angular and Node.js) but even if you are not planning on using Angular understanding Node.js and Express could transform your approach to web applications.
Duration: 3 Days
Cork Date: 28-30 Aug, 27-29 Nov
Dublin Date: 18-20 Sep, 11-13 Dec
This course is also available as a customised client specific course.
We can customise this course to match your architecture. If you use a different database, templating engine, build pipeline or development environment then we can tailor the course to match your environment.
Server side technologies overview
Introduction to node.js
Introducing the development environment
Installing node.js and npm
What is package management?
Initialising a new application - npm init
Hello world script
Running the script
Running your application
Debugging your application
Test driven development
Adding commands to package.json
Automatically rerun your server (nodemon)
Get your browser to auto refresh
Installing your application on a web server
Running your application
Core node.js development:
Some ES6 features we will use
The require function
The module pattern
Using an iife (immediately invoked function expression) to initialise your module
Event driven programming using EventEmitter
Making an asynchronous call from your server
The this object and arrow functions
The node.js event loop, timers and nextTick()
What is express?
Creating a simple web server using express
Creating an endpoint
Configuring Express to serve static content
The request and response objects
Introduction to mongodb
Installing and running mongodb
Creating a database and some test tables
Simple inserts and queries
Adding Mongoose to your node.js web application
Making some simple calls to mongodb
Creating a RESTful web service with Node and Express:
Understanding Routing in Express
Creating REST style endpoints
RESTful verbs / methods
Reading from the database (Get)
Modifying the database (Insert, Update, Delete)
Chaining calls with next()
Creating a simple filter chain
Using sessions and cookies
Create your own middleware module
Creating a simple authentication mechanism using middleware
Templating engines ejs & jade
Configuring a template engine
Partial files and includes
Passing parameters to a template
Introduction to Angular:
What is Angular?
The history of Angular; what is difference between angular.js and Angular?
Which version should I use?
Understanding the Angular philosophy
Creating a simple Angular application