Gin Tutorials
Gin Tutorials
Building Go Web Applications and Microservices Using Gin
What is Gin?
Why Gin?
Designing the Application
Application Functionality
Routing
Installing the Dependency
Creating Reusable Templates
Displaying the List of Articles
Setting Up the Route
Designing the Article Model
Creating the View Template
Specifying the Requirement for the Route Handler With a Unit Test
Creating the Route Handler
Displaying a Single Article
Setting Up the Route
Creating the View Templates
Specifying the Requirement for the Route Handler With a Unit Test
Creating the Route Handler
Responding With JSON/XML
Creating a Reusable Function
Modifying the Requirement for the Route Handlers With a Unit Test
Updating the Route Handlers
Testing the Application
Continuous Integration for Go on Semaphore
Conclusion
Test-driven Development of Go Web Applications with Gin
Adding Registration Functionality
Writing Tests for This Functionality
Setting Up the Routes
Creating the View Templates
Implementing the Route Handlers
Allowing Users to Log in and Log out
Testing Login and Logout Functionalities
Setting Up the Routes
Creating the View Template
Implementing the Model
Allowing Users to Post New Articles
Testing the 'Create Article' Functionality
Setting Up the Routes
Creating the View Templates
Implementing the Model
Implementing the Route handlers
Adding Authorization Checks
Understanding the Requirement for Authorization
Specifying the Requirement for the Middleware With Unit Tests
Using the Middleware
Modifying the Menu to Display Links Based on the Authorization Status
Running, Testing and Continuously Building the Application with Semaphore
Starting the Application
Accessing the Application from the Browser
Implementing Continuous Build Using Semaphore
Next Steps
Conclusion
How to Perform Integration Testing on Go Applications with Docker
Using Docker in Testing
Understanding the Composite Application
Setting Up Application 1 (Web Application)
Setting Up Application 2 (Authentication Service)
Setting Up Integration Testing
Next Steps
Conclusion
Powered by
GitBook
Displaying the List of Articles
Displaying the List of Articles
In this section, we'll add the functionality to display the list of all articles on the index page.
results matching "
"
No results matching "
"