Create an API with Go and Gorilla Mux

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Connecting to the CloudAcademy Web based IDE
lock
Install and Configure the Go Tools
lock
Create a Basic HelloWorld Application
lock
Create an API using Go and Gorilla Mux
lock
Test the API

The hands-on lab is part of this learning path

Building and Deploying a Cloud Native Application
course-steps 4 certification 1 lab-steps 6

Ready for the real environment experience?

DifficultyIntermediate
Time Limit1h 30m
Students32
Ratings
5/5
star star star star star

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

Students13031
Labs28
Courses67
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.