Introduction
  • About the instructor and the course
  • About the microservices architecture and Lumen
  • Make sure you have understood the architecture you will implement with Lumen.
  • How to Ask Questions
  • About the development environment to use in the course
Creating a first microservice for authors with Lumen
  • Obtaining the Lumen structure for the authors' service
  • The source code of the course
  • Preparing the service for its correct operation
  • Building the authors table with a migration of Lumen
  • Creating the authors' model
  • Creating a factory for authors and building test values
  • Creating the controller for authors
  • Creating the routes for CRUD operations on the authors
  • Normalizing the authors' microservice responses
  • Make sure you understand several essential concepts and components
Implementing the functions of the authors' microservice in Lumen
  • Showing the list of authors from the Lumen controller
  • Allowing creating author instances from the controller
  • Allowing showing an author with a given id with Lumen
  • Allowing editing an existing author
  • Allowing deleting an existing author
  • Handling important errors and exceptions with Lumen
Creating the book microservice with Lumen
  • Getting the structure of Lumen for the book microservice
  • Preparing the books microservice
  • Creating the table for books with migrations
  • Creating the model for books
  • Creating a factory for books and generating random values
  • Creating the Lumen controller for books
  • Creating the Lumen routes for CRUD operations on books
  • Standardizing the responses across the services
Implementing the microservice functions for books in Lumen
  • Showing the complete list of books
  • Allowing creating new instances of books
  • Allowing showing a specific book
  • Allowing updating an existing book
  • Allowing removing an existing book
  • Handling relevant errors and exceptions with Lumen
Creating and preparing the API Gateway with Lumen
  • Creating the Lumen project for the API Gateway using Composer
  • Preparing Lumen for the API Gateway
  • Creating the controllers for the authors and books Lumen microservices
  • Unifying Lumen responses for the API Gateway
  • Registering routes for microservices in Lumen from the Gateway
  • Preparing the Gateway in Lumen to consume services
  • Preparing the Lumen components to consume the internal services
Implementing the functions of the Gateway with Lumen
  • Obtaining the list of authors from the authors' Lumen microservice
  • Creating an author instance with the authors' service
  • Showing an author instance using the authors' Lumen microservice
  • Editing author instances using the authors' service
  • Deleting author instances using the authors' Lumen service
  • Implementing operations for books based on the authors ones
  • Checking the existence of the author before creating a book
  • Controlling errors obtained from services
Implementing the security layer of the microservices architecture with Lumen
  • Installing and enabling Lumen Passport components
  • Preparing and configuring Lumen to use Passport
  • Protecting the Gateway routes with Lumen Passport
  • Obtaining and using access tokens for the Lumen API Gateway
  • Preparing the API Gateway to authenticate its requests
  • Authenticating direct access to the Lumen authors microservice
  • Authenticating direct access to the microservice of books
Authenticating user access with access tokens
  • Creating the migration for the users table in Lumen
  • Creating the controller and the routes to manage users in Lumen
  • Fixing some details related to user operations
  • Creating users and creating access tokens associated with users
  • Identifying an authenticated user through access token
Conclusions and recommendations
  • Considerations to keep in mind with your microservices
  • Thanks for getting here