Unit 7: Introduction to Node.js
Objectives
- Understand how the web applications work
- Understand the characteristics and functionalities of Node.js
- Learn how to use Node.js to create web applications and servers
- Familiarise with the Node.js package ecosystem
Estimated duration
Prerequisites
- Basic knowledge of JavaScript
Content
1. Introduction to web applications
- Definition of web applications
- Characterisation of web applications
- Differences between server and client in a web application
- HTTP protocol in web applications
2. What is Node.js?
- Introduction to Node.js
- Characteristics and advantages of Node.js
- Comparison with other server technologies
- Examples of applications created with Node.js
3. Installing Node.js
- Downloading and installing Node.js
- Verifying the installation
- Using the console and the REPL interpreter
4. Modules and packages in Node.js
- What are modules in Node.js?
- Importing and exporting modules
- Using packages and managing dependencies with NPM
5. Creating applications with Node.js
- Using Node.js to create command-line applications
- Creating a basic web server with Node.js
- Handling HTTP requests and responses in Node.js
- Using Node.js's
http
library to create a web server
6. Developing more advanced applications with Node.js
- Using server frameworks such as Express.js
- Creating a simple web application with Express.js
- Integrating databases in Node.js
- Using testing tools for Node.js applications
7. Publishing Node.js applications
- Choosing a hosting provider for Node.js applications
- Preparing a Node.js application for publishing
- Deploying a Node.js application on a production server
Evaluation
- Creating a basic web application with Node.js and Express.js
- Testing the application on a local server and a production server
Resources
- Official Node.js website: https://nodejs.org/
- Node.js documentation: https://nodejs.org/en/docs/
- Express.js documentation: https://expressjs.com/
- Node.js package repository: https://www.npmjs.com/