In this module, you use your application that you’ve deployed. Before you do that, let’s do a quick recap of the AWS components you’re using in your application:
- Amazon Neptune for data storage, where you modeled your data as a graph.
- Amazon Cognito for user registration and authentication.
- AWS Lambda for compute.
- Amazon API Gateway for HTTP-based access to your Lambda function.
Let’s see how each of these pieces tie together. In the following steps, you walk through your different application endpoints using these components.
First, you start with a Registration endpoint, where a new user signs up and creates their account. After you register the user, you view the user's details with the FetchUser endpoint.
Second, you use a Login endpoint where a user can use a client (such as a web application or a mobile app) to authenticate and receive an ID token.
Third, you use a FetchUserRecommendations endpoint to find users you should follow.
Finally, you use the FollowUser endpoint to start following another user.
Time to Complete Module: 15 Minutes
In this module, you exercised your working endpoints to see how your components worked together. First, you registered a new user in your application and retrieved your user to ensure all details were saved. Second, you exercised the login endpoint to fetch an ID token for your user that can be used by the client to authenticate the user. Third, you retrieved friendship recommendations for your user. You then acted on those recommendations by following your first user. After following a user, you verified that the friendship was saved and that your recommendations were updated accordingly.
In the next module, you clean up the resources you created.