image
hands-on labCreate an API with Go and Gorilla Mux
Intermediate
1h 30m
855
4.7/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab steps
Connecting to the CloudAcademy Web based IDE
Install and Configure the Go Tools
Create a Basic HelloWorld Application
Create an API using Go and Gorilla Mux
Test the API
Lab description

Lab Overview

Go is an open-source programming language that makes it easy to build simple, reliable, and efficient software!

This lab is designed to show you how to install and setup a Go-based development environment, allowing you to compile and execute your own Go-based applications. The lab will then walk you through the process of creating a basic API in which you are shown how to use Gorilla Mux for API request routing.

Lab Objectives

Upon completion of this lab, you will be able to:

  • Install and configure the Go toolset
  • Create and compile basic Go applications
  • Use Gorilla Mux for HTTP routing and URL matching
  • Build basic APIs using Go

You should:

  • Be comfortable with basic software engineering and development principles.

Note: This lab includes a complete solution to consult with when needed.

Lab Environment

This lab will start with the following AWS resources provisioned automatically for you:

  • A single EC2 instance, named ide.cloudacademy.platform.instance, which will have a public IP address attached. This will be the instance that you will connect to using your local workstation browser.

To achieve the lab end state, you will be walked through the process of:

  • Using your local workstation browser to remotely connect to ide.cloudacademy.platform.instance
  • Download, install and configure the Go toolset
  • Create a basic API which leverages the Gorilla Mux package for HTTP routing and URL matching
  • Compile, execute and test the resulting API

 

About the author
Avatar
Jeremy Cook
Content Lead Architect
Students
134015
Labs
69
Courses
111
Learning Paths
191

Jeremy is a Content Lead Architect and DevOps SME here at Cloud Academy where he specializes in developing DevOps technical training documentation.

He has a strong background in software engineering, and has been coding with various languages, frameworks, and systems for the past 25+ years. In recent times, Jeremy has been focused on DevOps, Cloud (AWS, Azure, GCP), Security, Kubernetes, and Machine Learning.

Jeremy holds professional certifications for AWS, Azure, GCP, Terraform, Kubernetes (CKA, CKAD, CKS).