Free ebook on creating NodeJS APIs, from HTTP servers and ExpressJS to MongoDB, JWT security, testing, Docker, and deployment.
Free ebook + audiobook content
-
Introduction to NodeJS
+ Exercise: What are some reasons why Node.js is a popular choice for API development? 3 minutes -
NodeJS installation and configuration
+ Exercise: What is the process to install Node.js on your system? 3 minutes -
Basic concepts of NodeJS
+ Exercise: Which of the following statements about NodeJS is true? 3 minutes -
NodeJS Basics: NodeJS Installation
+ Exercise: What is NodeJS and what is it used for? 3 minutes -
NodeJS Basics: JavaScript Fundamentals
+ Exercise: Which of the following statements is true about NodeJS? 4 minutes -
NodeJS Basics: NodeJS Basics
+ Exercise: What is the function of Event Loop in NodeJS? 3 minutes -
NodeJS Basics: Creating an HTTP Server
+ Exercise: What is the function of 'createServer()' method in NodeJS? 3 minutes -
NodeJS Basics: Routes and Request Handling
+ Exercise: What is a route in the context of an API in NodeJS and how is it defined? 4 minutes -
Middleware and its application
+ Exercise: What is Middleware in the context of NodeJS and API development? 3 minutes -
NodeJS Basics: Authentication and Authorization
+ Exercise: What is authentication and authorization in NodeJS and why are they important? 3 minutes -
NodeJS Basics: Data Validation
+ Exercise: Which of the following statements is true about data validation in NodeJS? 5 minutes -
NodeJS Basics: Database Integration
+ Exercise: What is the role of database driver modules in NodeJS? 3 minutes -
NodeJS Basics: Error Handling
+ Exercise: What are the three main categories of errors in NodeJS and how are they handled? 3 minutes -
NodeJS Basics: Automated Testing
+ Exercise: Which of the following is the purpose of a unit test in NodeJS? 4 minutes -
NodeJS Basics: API Documentation
+ Exercise: What is the importance of API documentation in developing APIs in NodeJS? 3 minutes -
NodeJS Basics: API Deployment
+ Exercise: What are the main steps for deploying an API in NodeJS, as described in the text? 3 minutes
-
Understanding the Node Package Manager (NPM)
+ Exercise: What is the role of the "npm install" command in Node Package Manager (NPM)? 4 minutes -
Installing NodeJS and NPM
+ Exercise: What is the Node Package Manager (NPM) and what is its function? 3 minutes -
Understanding NPM's role
+ Exercise: What is the role of the Node Package Manager (NPM) in Node.js projects? 3 minutes -
Managing Packages with NPM
+ Exercise: What is the Node Package Manager (NPM) and why is it important in Node.js development? 3 minutes -
Creating a package.json file
+ Exercise: What is the package.json file in the context of Node.js and how is it created? 3 minutes -
Installing packages from NPM
+ Exercise: What is the Node Package Manager (NPM) and what is its role in Node.js development? 3 minutes -
Understanding dependencies and devDependencies
+ Exercise: What is the Node Package Manager (NPM) and how does it manage a project's dependencies? 3 minutes -
Updating packages
+ Exercise: What does the Node Package Manager (NPM) not update automatically? 3 minutes -
Removing packages
+ Exercise: What is the role of the 'npm uninstall' command in Node.js package management? 3 minutes -
Publishing a Package to NPM
+ Exercise: What is the Node Package Manager (NPM) and what is its role in the Node.js ecosystem? 3 minutes -
Using third-party packages
+ Exercise: What is NPM and what is its role in NodeJS development? 3 minutes -
Configuring scripts in package.json
+ Exercise: What is the package.json file in a Node.js project? 3 minutes -
Understanding the package-lock.json file
+ Exercise: What is the package-lock.json file and why is it important in the Node.js ecosystem? 3 minutes -
Resolving package version conflicts
+ Exercise: Which of the following is NOT a strategy for resolving package version conflicts in NPM? 3 minutes -
Creating a basic server with NodeJS
+ Exercise: What is the function of the 'npm init' command in the process of creating a server with NodeJS? 4 minutes -
Installing NodeJS
+ Exercise: What is the key feature of NodeJS that makes it ideal for building RESTful APIs and microservices? 4 minutes -
Setting up the development environment
+ Exercise: What is the procedure to verify that NodeJS and NPM are installed correctly? 4 minutes -
Understanding the API concept
+ Exercise: What is an API and how is it used in web development? 3 minutes -
Creating a basic server with NodeJS
+ Exercise: What is the process to create a basic server with NodeJS? 3 minutes -
Defining routes and endpoints
+ Exercise: What is the function of 'express' in the development of a server in NodeJS? 4 minutes -
Working with HTTP requests
+ Exercise: Which of the following statements is true about building a basic server with NodeJS? 5 minutes -
Manipulating data and returning responses
+ Exercise: What is the purpose of the 'createServer' method in the 'http' module of NodeJS? 4 minutes -
Using libraries and frameworks to facilitate API development
+ Exercise: What is NodeJS and what is it used for? 4 minutes -
Request validation and authentication
+ Exercise: What is the purpose of validating requests in a web application created with NodeJS? 5 minutes -
Storing Data in Databases
+ Exercise: What is the process for creating a basic server with NodeJS and storing data using MongoDB? 5 minutes -
Handling errors and exceptions
+ Exercise: What is the difference between errors and exceptions in the context of a NodeJS server and how are they handled? 3 minutes -
Testing and Documenting the API
+ Exercise: What is the process for developing a basic API in NodeJS? 3 minutes -
API Deployment and Hosting
+ Exercise: What is the process for creating a basic NodeJS server and deploying and hosting an API as covered in section 5.13 of the eBook course? 5 minutes
-
Introduction to ExpressJS
+ Exercise: What is ExpressJS and what are some of its main features? 4 minutes -
Working with routes in ExpressJS
+ Exercise: What is the role of routes in ExpressJS in creating APIs in NodeJS? 4 minutes -
Creating basic routes
+ Exercise: What does ExpressJS allow you to create regarding routes in a NodeJS application? 5 minutes -
Passing parameters in routes
+ Exercise: Which of the following statements is true about routes in ExpressJS? 3 minutes -
Working with dynamic routes
+ Exercise: What is the main use of dynamic routes in ExpressJS framework for NodeJS? 4 minutes -
Using middleware in routes
+ Exercise: What are Middlewares in the context of ExpressJS and how are they used? 3 minutes -
Working with Authentication Routes
+ Exercise: What is the role of authentication routes in ExpressJS and how are they implemented? 4 minutes -
Creating routes for CRUD
+ Exercise: What HTTP method and ExpressJS function are used to create a route that handles data deletion in a web application? 4 minutes -
Organizing routes in separate files
+ Exercise: What is the main advantage of organizing routes in separate files in ExpressJS? 3 minutes -
Using HTTP verbs in routes (GET, POST, PUT, DELETE)
+ Exercise: What is the role of HTTP verbs in ExpressJS and how are they used to define routes? 4 minutes -
Working with query parameters in routes
+ Exercise: What are query parameters in ExpressJS and how are they used? 3 minutes -
Validating data in routes
+ Exercise: What is the role of data validation in routes in ExpressJS? 4 minutes -
Working with File Uploads in Routes
+ Exercise: What is the function of the 'multer' middleware in ExpressJS and how is it used to handle file uploads? 4 minutes -
Working with JWT Authentication on Routes
+ Exercise: What is the role of 'authenticateToken' middleware in implementing JWT authentication in ExpressJS routes? 4 minutes -
Working with Route Authorization
+ Exercise: What is ExpressJS and how does it manage routes in a web application? 3 minutes -
Implementing paging in routes
+ Exercise: In the context of developing APIs in NodeJS with ExpressJS, how would you implement paging in routes? 4 minutes -
Working with Cached Routes
+ Exercise: What are some of the main features of ExpressJS and how are they implemented? 4 minutes -
Testing Routes with Jest or Mocha
+ Exercise: What is the main functionality of ExpressJS mentioned in the text and what are the suggested testing tools to ensure the routes work correctly? 4 minutes -
Introduction to APIs
+ Exercise: What is the main role of APIs (Application Programming Interfaces) in modern programming? 3 minutes -
What are REST APIs
+ Exercise: Which of the following statements is true about REST APIs? 3 minutes -
Creating a basic REST API with NodeJS and ExpressJS
+ Exercise: What are the basic steps to create a REST API with NodeJS and ExpressJS? 4 minutes -
NodeJS Installation
+ Exercise: What is the first step to create a basic REST API with NodeJS and ExpressJS? 4 minutes -
ExpressJS Installation
+ Exercise: What is the process for creating a basic REST API with NodeJS and ExpressJS? 3 minutes -
Initial Project Setup
+ Exercise: What is the purpose of the 'npm install express --save' command during the initial setup of a REST API project with NodeJS and ExpressJS? 4 minutes -
Defining Routes
+ Exercise: What is the role of the 'get', 'post', 'put' and 'delete' methods provided by ExpressJS in defining routes in an API? 4 minutes -
Creating the Controllers
+ Exercise: What is the role of controllers in a basic REST API built with NodeJS and ExpressJS? 4 minutes -
Implementing the HTTP Methods
+ Exercise: Which of the following HTTP methods is used to update an existing resource in a REST API implemented with NodeJS and ExpressJS? 4 minutes -
Data Validation
+ Exercise: What is a REST API and what are the basic steps to create one with NodeJS and ExpressJS? 4 minutes -
Error Handling
+ Exercise: What is a REST API and what tools are used to create it? 4 minutes -
Authentication and Authorization
+ Exercise: What is the difference between authentication and authorization in the context of a REST API and how are they implemented using NodeJS and ExpressJS? 5 minutes -
In-DB Data Manipulation
+ Exercise: What is the process for creating a basic REST API with NodeJS and ExpressJS? 4 minutes -
API Documentation
+ Exercise: What is the purpose of the 'npm install express --save' command mentioned in the text? 5 minutes -
Automated Tests
+ Exercise: What is the main purpose of automated testing in API development, as discussed in chapter 10.12 of the e-book course "Creating a Basic REST API with NodeJS and ExpressJS: Automated Testing"? 4 minutes -
API Deployment
+ Exercise: What is the process for deploying a basic REST API built with NodeJS and ExpressJS on Heroku? 3 minutes -
Working with JSON in NodeJS
+ Exercise: Which of the following statements is true about working with JSON in NodeJS, according to chapter 11 of our ebook? 4 minutes -
Working with CORS in NodeJS
+ Exercise: What is CORS and how is it used in NodeJS? 4 minutes -
Error handling in NodeJS
+ Exercise: How is error handling done in NodeJS? 3 minutes
-
Introduction to MongoDB
+ Exercise: What is MongoDB and why is it useful? 3 minutes -
Integrating NodeJS with MongoDB
+ Exercise: What is Mongoose's role in API development with NodeJS and MongoDB? 4 minutes -
Creating a CRUD with NodeJS and MongoDB
+ Exercise: What is the purpose of CRUD in API development with NodeJS and MongoDB? 4 minutes -
NodeJS Installation
+ Exercise: How can you verify that the NodeJS installation was successful on your system? 5 minutes -
MongoDB Installation
+ Exercise: What is MongoDB and how is it structured? 4 minutes -
Development Environment Setup
+ Exercise: What is the correct sequence for setting up a development environment to create a CRUD with NodeJS and MongoDB? 4 minutes -
Creating the NodeJS Project
+ Exercise: What is the process to create a CRUD with NodeJS and MongoDB? 6 minutes -
Connecting to the MongoDB database
+ Exercise: What is Mongoose in the context of NodeJS and MongoDB development? 5 minutes -
Creating routes for the CRUD
+ Exercise: What is CRUD in the context of developing APIs with NodeJS and MongoDB? 4 minutes -
Creating controllers for each CRUD operation
+ Exercise: What is the role of the 'Update' controller in CRUD with NodeJS and MongoDB? 4 minutes -
Implementing functions to create, read, update and delete data
+ Exercise: In the context of the e-book course presented in the text, what is the purpose of the functions to create, read, update and delete data in NodeJS and MongoDB? 5 minutes -
Validation of received data
+ Exercise: What does the acronym CRUD stand for and why is data validation important in a CRUD with NodeJS and MongoDB? 4 minutes -
Error Handling
+ Exercise: What does the acronym CRUD mean in the context of web application development and what operations does it represent? 5 minutes -
Unit Tests
+ Exercise: What does the acronym CRUD mean in the context of API development with NodeJS and MongoDB? 4 minutes -
API Documentation
+ Exercise: How important is API documentation in development and what popular tool is used to document APIs? 7 minutes -
Application Deployment
+ Exercise: What is the process for creating a CRUD (Create, Read, Update, Delete) with NodeJS and MongoDB as described in the e-book course? 7 minutes
-
Authentication and authorization in NodeJS APIs
+ Exercise: What is the difference between authentication and authorization in NodeJS APIs? 3 minutes -
Authentication with JWT
+ Exercise: What is needed to implement authentication with JWT in NodeJS? 4 minutes -
Authorization with roles and permissions
+ Exercise: What is the role of authorization with roles and permissions in creating secure APIs in NodeJS? 4 minutes -
Implementation of login with social networks
+ Exercise: What is needed to implement login with social networks in a NodeJS API? 5 minutes -
Use of middlewares for authentication and authorization
+ Exercise: What are middlewares and how are they used for authentication and authorization in NodeJS APIs? 4 minutes -
Secure Password Storage
+ Exercise: What is the difference between authentication and authorization in a NodeJS API and how are they implemented? 3 minutes -
Generation and renewal of access tokens
+ Exercise: What is the difference between authentication and authorization in NodeJS APIs, as explained in section 17.6 of the ebook course on building NodeJS APIs from basics to advanced? 3 minutes -
Implementation of role-based access control
+ Exercise: What is the difference between authentication and authorization in the context of a Node.js API and which modules can be used to implement these security aspects? 4 minutes -
Protection against brute force attacks
+ Exercise: What are the essential security elements of a NodeJS API and how are they implemented? 3 minutes -
Implementing password policies
+ Exercise: What are the steps for implementing password policies in NodeJS APIs? 3 minutes -
Use of libraries and frameworks for authentication and authorization
+ Exercise: What is the difference between authentication and authorization in the context of developing APIs in NodeJS? 4 minutes -
Working with JSON Web Tokens (JWT) in NodeJS
+ Exercise: What is the main role of JSON Web Tokens (JWT) in creating APIs in NodeJS? 4 minutes -
What are JSON Web Tokens (JWT)
+ Exercise: What are JSON Web Tokens (JWTs) and how are they implemented in NodeJS? 4 minutes -
How to generate a JWT in NodeJS
+ Exercise: What is the role of jsonwebtoken package in NodeJS? 3 minutes -
How to validate a JWT in NodeJS
+ Exercise: What is the jsonwebtoken library in the context of NodeJS? 4 minutes -
How to store a JWT in a cookie
+ Exercise: What is needed to create a JWT in a NodeJS application? 4 minutes -
How to secure routes with JWT in NodeJS
+ Exercise: What is JWT and how is it used in NodeJS for authentication and authorization? 4 minutes -
How to configure the expiration of a JWT
+ Exercise: What is JWT and how is it used in NodeJS? 4 minutes -
How to add extra information in a JWT
+ Exercise: What is a JSON Web Token (JWT) and how is it used in NodeJS? 5 minutes -
How to revoke a JWT
+ Exercise: What is JSON Web Token (JWT) revocation in a NodeJS application and what are some ways to implement it? 4 minutes -
How to handle refresh tokens in NodeJS
+ Exercise: What is a refresh token and what is its role in a JWT authentication system in a Node.js application? 4 minutes -
How to implement JWT-based authentication in a NodeJS API
+ Exercise: What is required to implement JWT based authentication in a NodeJS API? 4 minutes
-
Data validation with the Joi package
+ Exercise: What is the main role of Joi library in NodeJS projects? 5 minutes -
File upload with Multer in NodeJS
+ Exercise: What is the function of the Multer library in NodeJS applications? 4 minutes -
Introduction to Socket.IO
+ Exercise: What is the main function of Socket.IO module in NodeJS? 3 minutes -
Creating a live chat with Socket.IO and NodeJS
+ Exercise: What is needed to create a live chat with Socket.IO and NodeJS? 4 minutes -
Testing NodeJS APIs with Postman
+ Exercise: What is Postman's main role in NodeJS API development? 4 minutes -
Testing NodeJS APIs with Jest
+ Exercise: What is Jest and what is its role in NodeJS API development? 4 minutes -
NodeJS API Deployment
+ Exercise: What do I need to do before deploying a NodeJS API? 3 minutes -
Introduction to Docker
+ Exercise: What is a Docker and how can it be used in NodeJS API development? 4 minutes -
Creating and managing Docker containers for NodeJS APIs
+ Exercise: What is the purpose of a Dockerfile in a NodeJS API project? 3 minutes -
Introduction to Kubernetes
+ Exercise: What is Kubernetes and what is its role in API development? 3 minutes -
Managing Docker containers with Kubernetes
+ Exercise: What is Kubernetes and how does it work with Docker? 3 minutes -
NodeJS API monitoring with PM2
+ Exercise: What is the main role of the PM2 tool in managing Node.js applications? 3 minutes -
Security in NodeJS APIs
+ Exercise: What are some key techniques and best practices for securing a NodeJS API? 3 minutes -
Performance in NodeJS APIs
+ Exercise: What are some techniques and best practices for improving the performance of APIs in NodeJS? 3 minutes -
Session management in NodeJS APIs
+ Exercise: What is a session and how is it managed in NodeJS APIs? 3 minutes -
Cache in NodeJS APIs
+ Exercise: Which of the following statements is true about implementing caching in NodeJS APIs? 3 minutes -
Documenting NodeJS APIs with Swagger
+ Exercise: What is the purpose of Swagger in API development? 4 minutes -
NodeJS API Versioning
+ Exercise: What are three common approaches to versioning an API in NodeJS? 4 minutes -
Working with Queues in NodeJS with Bull
+ Exercise: What is the role of Bull library in NodeJS? 3 minutes -
Working with WebSockets in NodeJS
+ Exercise: What is WebSockets technology and how is it used in NodeJS? 3 minutes -
Introduction to GraphQL
+ Exercise: What is GraphQL and how does it compare to REST? 3 minutes -
Creating APIs with GraphQL and NodeJS
+ Exercise: What is needed to create an API with GraphQL and NodeJS? 4 minutes -
Refactoring a NodeJS API
+ Exercise: What is the main purpose of refactoring a NodeJS API? 3 minutes -
SOLID principles in NodeJS
+ Exercise: What are the five object-oriented software design principles represented by the acronym SOLID, proposed by Robert C. Martin? 4 minutes -
Design Patterns in NodeJS
+ Exercise: Which of the following design patterns in NodeJS allows an object to keep a list of its dependents and automatically notify them of any state changes? 3 minutes -
Advanced practices in NodeJS
+ Exercise: What are some of the NodeJS advanced practices mentioned in the text? 3 minutes -
Introduction to TypeScript
+ Exercise: What is TypeScript and why is it valuable for developing APIs in NodeJS? 3 minutes -
Using TypeScript in NodeJS projects
+ Exercise: What is TypeScript's role in NodeJS projects and how can it be installed and configured? 3 minutes -
Refactoring a NodeJS API to TypeScript
+ Exercise: What is the process for refactoring a NodeJS API to TypeScript? 3 minutes -
Conclusion: Next steps in NodeJS
+ Exercise: What are the suggested next steps to continue the NodeJS learning journey? 3 minutes
About the free ebook with audio
How to Create APIs in NodeJS: From Basic to Advanced
This free ebook is a practical backend development guide for building reliable APIs with NodeJS. It moves from installation, JavaScript essentials, HTTP servers, routes, and request handling to production-focused API design.
Build modern REST APIs with NodeJS and ExpressJS
Learn how to structure endpoints, use HTTP verbs, process parameters and query strings, create CRUD operations, validate input, manage errors, and document APIs. The material also explains JSON, CORS, middleware, database integration, and automated testing.
Work with databases, security, and authentication
Create MongoDB-backed applications and implement authentication with JWT, secure password storage, refresh tokens, roles, permissions, and route authorization. You will also explore file uploads, caching, sessions, queues, WebSockets, Socket.IO, and API monitoring.
Prepare APIs for deployment and growth
Develop practical skills for testing with Postman and Jest, documenting with Swagger, deploying NodeJS services, and working with Docker and Kubernetes. Advanced sections introduce GraphQL, TypeScript, refactoring, SOLID principles, design patterns, performance, versioning, and security practices.
What you will be able to do
- Create RESTful APIs with NodeJS and ExpressJS.
- Connect APIs to MongoDB and implement CRUD features.
- Protect endpoints with JWT authentication and authorization.
- Test, document, deploy, monitor, and improve backend services.
Use this ebook as a structured reference while creating maintainable, secure, and scalable NodeJS APIs.
How do I create a REST API with NodeJS and ExpressJS?
Set up NodeJS and Express, define routes and controllers, use HTTP methods, validate requests, and return structured JSON responses.
How can I secure NodeJS API routes with JWT?
Generate and validate JWTs in authentication middleware, then use roles and permissions to control access to protected routes.
How do I connect a NodeJS API to MongoDB?
Configure a MongoDB connection, define data operations, and use routes and controllers to create, read, update, and delete records.
This ebook/audiobook includes:
10 hours and 24 minutes of audio content
Digital certificate of course completion (Free)
Exercises to train your knowledge
100% free, from content to certificate
Ready to get started?
In the app you will also find...
Over 5,000 free courses
Programming, English, Digital Marketing and much more! Learn whatever you want, for free.
Study plan with AI
Our app's Artificial Intelligence can create a study schedule for the course you choose.
From zero to professional success
Improve your resume with our free Certificate and then use our Artificial Intelligence to find your dream job.
You can also use the QR Code or the links below.























