Skip to content

ShivangShandilya/go-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO CRUD Rest API using Mux, Postgres, Docker, and Docker Compose

I have created a GO CRUD Rest API which keeps account of Mens 100m Race using,

  • Mux (Framework to build web servers in Go)

  • Postgres (relational database)

  • Docker (for containerization)

  • Docker Compose

image

I have created 5 endpoints for basic CRUD operations,

  • Create

  • Read all

  • Read one

  • Update

  • Delete

Here are the steps I went through:

  • Create a Go application using Mux as a framework

image

  • Dockerize the Go application writing a Dockerfile and a docker-compose.yml file to run the application and the database.

image

image

  • Run the Postgres database in a container using Docker Compose, and test it with TablePlus.

image

  • Build the Go App image and run it in a container using Docker Compose, then test it with Postman.

image

With this our GO CRUD Rest API using Mux, Postgres, Docker, and Docker Compose has been created

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published