-
Setting up a Simple Web Application
13 Lessons-
PreviewWhat we'll build in this section
-
PreviewHow web applications work
-
StartSetting up our main application
-
StartInstalling a routing package
-
StartSetting up routes
-
StartSetting up a simple HTML template
-
StartCreating a render function
-
StartRendering our first page
-
StartAdding navigation
-
StartCreating templates for all site pages
-
StartSetting up a route & handler for site pages
-
StartTrying out our template cache
-
StartAdding WebP and jpeg images to the home page
-
-
Factory Patterns
13 Lessons-
PreviewWhat we'll build in this section
-
StartThe Factory Pattern
-
StartSetting up some types
-
StartCreating a simple Factory
-
StartCreating handlers for the simple Factory
-
StartSetting up the front end
-
StartAdding routes for our Factory handlers
-
StartTrying our Factory pattern out
-
StartThe Abstract Factory pattern
-
StartCreating an Abstract Factory
-
StartCreating a route and handler for the Abstract Factory
-
StartUpdating the front end
-
StartTrying out our Abstract Factory
-
-
The Repository Pattern
12 Lessons-
PreviewWhat we will build in this section
-
PreviewWriting our first database function
-
StartCreating a handler to list dog breeds
-
StartUpdating the front end to fetch the list of dog breeds
-
StartUpdating the front end to display the list of dog breeds
-
PreviewWriting a test for our handlers
-
StartImplementing the Repository pattern I
-
StartImplementing the Repository pattern II
-
StartImplementing the Repository pattern III
-
StartTrying things out
-
StartImplementing a test database repository
-
StartUpdating our handler test
-
-
Builder Pattern & Fluent Interface
10 Lessons-
StartWhat we'll build in this section
-
StartThe Builder Pattern (& Fluent Interface)
-
PreviewGetting started with the Builder pattern in our project
-
StartSetting up our Builder code
-
StartFixing three problems with our Builder code
-
StartSetting up a handler to use our Builder pattern
-
StartSetting up a route to our handler
-
StartModifying the front end to call our Builder route
-
StartChallenge
-
StartSolution to challenge
-
-
Adapter Pattern
10 Lessons-
StartWhat we'll cover in this section
-
StartThe Adapter Pattern - Overview
-
PreviewInstalling an application to serve JSON and XML
-
StartSetting up the Adapter type & the Adaptee
-
StartAdding the Adapter to our application config
-
StartSetting up a handler
-
StartAdding a route
-
StartUpdating the Cat Breeds template
-
StartSwitching adapters from JSON to XML
-
StartAdding a test for the Cat Breeds handler, using our adapter pattern
-
-
Bringing it all together
14 Lessons-
StartWhat we'll cover in this section
-
StartCreating a stub AnimalFromAbstractFactory handler
-
StartCreating a New factory function for pet with embedded breed
-
StartCreating stub newPetWithBreed method for Cats and Dogs
-
StartAdding a GetDogBreedByName method in the database Repository
-
StartRefactoring adapters.go to new package
-
StartAdding a GetCatBreedByName method on our JSON adapter
-
StartAdding a GetCatBreedByName method on our XML adapter
-
StartFinishing up the new Adapter and Abstract Factory code
-
StartFinishing up the changes in our Abstract Factory to use the new adapters
-
StartSetting up a route to our stub handler
-
StartFinishing off the handler code
-
StartUpdating the front end to try things out
-
StartWriting the necessary javascript to call our back end
-
-
The Decorator Pattern
6 Lessons -
The Worker Pool Pattern
21 Lessons-
StartWhat we'll cover in this section
-
StartWorker Pool Overview
-
StartSetting up a Go Workspace to develop our new module
-
StartGetting started with the App and Streamer projects
-
StartCreating a Factory function for our Worker Pool
-
StartGetting started on the worker pool functionality
-
StartSetting up the Processor type
-
StartSetting up the Pool functionality
-
StartCreating Videos to send to the worker pool
-
StartSending videos to the worker pool
-
StartFilling in the encode() function's logic
-
StartTrying things out and tracing through program execution
-
StartInstalling ffmpeg
-
StartAdding logic to encode to MP4
-
StartTrying out the EncodeToMP4 method
-
StartAdding logic to encode to HLS: Part One
-
StartAdding logic to encode to HLS: Part Two
-
StartTrying out our HLS encoder
-
StartAdding random filename generation to our videos
-
StartTrying out our worker pool with four videos
-
StartAdding streamer to our Breeders project
-
