Create an API with Go and Gorilla Mux

The hands-on lab is part of this learning path

Lab Steps

Logging in to the Amazon Web Services Console
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

Ready for the real environment experience?

DifficultyIntermediate
Max Duration1h 30m
Students23
Ratings
5/5

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

Students10923
Labs28
Courses65
Learning paths15

Jeremy is the DevOps Content Lead at Cloud Academy where he specializes in developing technical training documentation for DevOps.

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

Jeremy holds professional certifications for both the AWS and GCP cloud platforms.