This article explores the Go Web App sample application designed for deployment using Jenkins, featuring GORM for database operations and integrated Swagger API documentation.
In this article, we explore the Go Web App sample application, which is designed for deployment using Jenkins. This application, forked to the Admin Turn DevOps GitHub organization and available in the Go Web App sample repository, is a straightforward implementation that leverages GORM for seamless database operations.
When you run the application, you will first see a login page. Use the provided credentials (for example, “test” for both username and password) to log in. Once authenticated, you will gain access to several application features, including an integrated Swagger API documentation interface that details all available endpoints.
To explore all the endpoints, simply navigate to the Swagger UI after starting the application.
For example, the API features an endpoint that checks the login status, confirming a successful authentication when queried. Additionally, the application enables you to fetch account details. Below is an example JSON response detailing the attributes of the logged-in account:
This article covers the initial setup and exploration of the Go Web App. In the subsequent sections, we will delve into the full deployment process, guiding you through each step in detail.Thank you for reading!