All You Need To Build A Simple Rest API using Golang — Part II: Adding MongoDB

$ docker run --name mongodb -p 27017:27017 mongo
$ go run cmd/go-rest/main.go 
2021/04/24 11:48:00 I'm go-rest, nice to meet you!
2021/04/24 11:48:07 database.NewDatabase - connected!
2021/04/24 11:48:07 Starting the API

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Marcos Pereira

Marcos Pereira

Software developer in constant evolution. Professional father. Mediocre musician =p