
Tools required to setup serverless framework for node.js in windows.
Install the serverless framework, download the boilerplate for an AWS Node.js http api template, and examine serverless.yml to define lambda functions, events, and resources for an API gateway integration.
Deploy and test a REST API behind an API gateway that proxies requests to a Lambda handler, then learn to secure it with Cognito authentication and authorization.
Explore how Cognito user pools provide secure registration, sign-in, and access control, while user pool app clients interact with the pool to issue ID, access, and refresh tokens.
Create an api gateway endpoint to confirm a Cognito user in the user pool via a serverless lambda using confirm sign up with client id, email, and code.
Access the GitHub repository linked in the resources section, download it, and try it on your own account, then share your comments.
In this course, you'll gain practical experience in creating, deploying, and testing REST APIs on AWS using Node.js, a popular server-side JavaScript runtime. We start by introducing the basics of AWS services, focusing on Amazon Cognito, where you’ll learn to configure a Cognito User Pool and Cognito App Client. This setup is crucial for managing user authentication and access control, ensuring that your application remains secure.
You will then move on to constructing REST APIs in Node.js, focusing on creating users and authenticating them within your application. A significant part of the course will involve writing and refining a serverless.yml file, which is central to deploying your APIs in a serverless environment on AWS. This file allows you to define your functions, resources, and permissions in a declarative manner, making deployment and management easier.
As you progress, you’ll integrate Cognito with your REST APIs to handle both authentication and authorization, ensuring that your APIs are secure and only accessible to authorized users. By the end of this course, you will have a solid understanding of how to build, deploy, and secure serverless REST APIs on AWS, using Node.js and the Serverless Framework. Looking forward to meeting you in this course.