go-rest-api Image go-rest-api

Sunset in the mountains

Defining the Comment Service

In this video, we'll look at how we can start defining our comment package and service definition.

go-rest-api
Sunset in the mountains

Handling JSON

Currently, the API returns the string representation of the Go objects. In this video, we look at how you can encode this into JSON and also how you can decode the body of incoming requests into Go objects.

go-rest-api
Sunset in the mountains

Implementing Our Repository Layer

In this video, we'll look at how we can define a simple database package that will handle connecting to the database.

go-rest-api
Sunset in the mountains

Implementing The Comment REST API Endpoints

In this video, we'll be defining the HTTP endpoints that are effectively going to expose the our comment service.

go-rest-api
Sunset in the mountains

Implementing the Comment Service

In this video, we'll look at how we can implement the methods for the comment service we defined in the previous video.

go-rest-api
Sunset in the mountains

Running Postgres Locally with Docker

We need a database running in order for us to store our comments. In this video, we look at how you can run postgres locally with docker

go-rest-api
Sunset in the mountains

Implementing the Transport Package

So, we have our basic app structure defined, let's start looking at how we can build out the server aspect and start serving some basic endpoints.

go-rest-api
Sunset in the mountains

Migrating Our Database and Testing our Endpoints Manually

One last step we need to do before we can testing our application is migrating our database to create the tables. In this video, we are going to do just that and then test our endpoints manually.

go-rest-api
Sunset in the mountains

Basic Auth Middleware

In this video, we are going to look at how we can implement some basic authentication middleware around the endpoints of our application.

go-rest-api
Next Page >>
Showing Page 1 of 3