Tutorial Overview
Tutorials give developers step by step guidance on how to use each component or framework. As Light is an ecosystem that delivers enterprise scale microservices, there are a lot of middleware handlers, frameworks, infrastructure services and tools that need to be covered with tutorials. In this section, some of the most important tutorials are listed and more will be added to the list.
Cross-Cutting Concerns
- Cross-Cutting Concerns
- CORS - Cross-Origin Resource Sharing
- Prometheus for metrics
- Encrypt and Decrypt
- Singleton Service Injection
- Service Registry and Discovery
- Introduction and code generation
- Static Configuration
- Dynamic service discovery with direct registry
- Multiple API D Instances
- Consul service registry and discovery
- Multiple instances with tags per environment
- Access consul with acl_token for security
- Service discovery for Docker container
- Service discovery for Kubernetes
- Service discovery for OpenShift
- Router Assisted Service Discovery
- Consul Production with TLS
- External Config
- Consul HTTP Health Check
- Docker-compose and Consul Production
- OpenTracing with Jaeger
- Tracing
- Routing
- Client
- Security
- It is essential to understand the basic terminologies and formats of certs and keys before proceeding other tutorials.
- How to set up your service to bootstrap from light-oauth2 key service for JWT signature verification public key certificate distribution.
- How to encrypt and decrypt sensitive info from config files.
- How to use customized decryptor to decrypt sensitive properties in config files.
- How to use keystore and truststore for one-way and two-way TLS.
- How to create keystore for the light-config-server TLS and bootstrap.truststore for light-4j service.
- A real example on adding server public key certificate to client.truststore to access public service on the Internet with HTTPS.
- How to install a self-signed or commercial CA-signed server certificate to light-4j service
- How to get free Let’s Encrypt certificate for public-facing light-4j secd rvice
- How to convert CA-signed certificate to server.keystore that can be used by light-4j service
- Running light-4j service on port 443 using iptables
- How to use environment variables for config values
- How to create self-signed client and server keystore for light-4j server
- How to create self-signed JWT key and cert for light-oauth2 and light-4j service
- How to generate keystore and truststore from PFX for light-4j service
- How to use Okta OAuth 2.0 provider for light-4j service
API Styles
- Merge two services with one server
- Hello World Hybrid Server and Services
- Eventuate Todo-list Hybrid Implementation
- Portal Hybrid Service initialization
- Portal Hybrid Query with Light Codegen Web
- Portal Hybrid Query with API Certification
- Portal Hybrid Command with Host Menu
- Portal Hybrid Query with Host Menu
- Portal Hybrid Command with Schema Form
- Portal Hybrid Query with Schema Form
- Portal Hybrid Service with User Management
- Taiji Blockchain Web Client Server SPA with handler.yml
- Register individual handlers to Consul for discovery
Infrastructure Service
- How to generate long lived access token
- How to start services
- Authorization Code
- Token Endpoint
- Service Registration
- Client Registration
- User Management
- Key Distribution
- Client Authenticated User
- Provider Service
- Deploy to Kubernetes Cluster
- Deploy to Openshift Cluster
- Integrate Kerberos/SPNEGO on Mac
- React Login View
- Local Form Authentication
- Test Cloud Deployment and Access
- Light-Portal Authenticator
- Update MySQL tables in Docker
- Swagger 2.0 Backend
- OpenAPI 3.0 Backend
- Proxy Docker
- Confluent Schema Registry
- Enable Metris on Proxy Server
- Local Confluent to support local development and test.
- Local development with Local Confluent
- API Endpoints with Postman and Curl command line.
- Three-node Cluster with fat jar and externalized config folders.
- Cluster Debug with docker-compose and IDE mix.
- Petstore Registry to show users how to the light-controller for service interaction.
- Service Discovery to show users how to leverage the light-controller for global registry and discovery.
- Kubernetes Cluster to show users how to use the light-controller in a Kubernetes cluster for instance management and goblal discovery.
- Local IDE to integrate light-scheduler, light-controller and petstore API
- Local Docker to integrate light-scheduler, light-controller and petsotre API with multiple nodes docker-compose.
- Mongo Provider in Debug Mode
- View Development with local config server as backend.
Tool Chain
- Generate Restful API with Swagger 2.0 Specification
- Generate Restful API with OpenAPI 3.0 Specification
- Generate Restful API in Kotlin with OpenAPI 3.0 Specification
- Generate GraphQL API with GraphQL IDL
- Generate Hybrid Service with Schema
- Generate Hybrid Server Hosts Hybrid services
- Generate CQRS Eventuate based Restful API with OpenAPI 3.0 Specification
- Generate Swagger 2.0 Mock API with Examples
- Generate OpenAPI 3.0 Mock API with Examples
- Integrate Code generation with maven build process with Examples
- Start codegen-web to support multiple versions
- Clone and build light-bot project and command line tool with Gradle
- Clone and build dependency in develop branches for Light developers
- Set up develop branch build and test on your local computer
- Set up devops sever for develop branch build automatically
- Build light-portal local develop branch using cloud eventuate services
- How to use regex-replace to replace repeated string/text across all repositories