Skip to content

andersonbraz/my_mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contêiner MongoDB + API Golang

Activity

Evolve your Golang service to expose a /info API to HTTP GET requests, where the JSON content that gets returned is obtained from a MongoDB entry.

GET http://localhost:8030/api/infos

Step 1 - Create Image

docker build -t mongo-client:1.0 . -f Dockerfile

Step 2 - Up Containers

docker-compose -f "docker-compose.yml" up -d --build

Step 3 - Populate Database

go run dump.go

References

Deploys MongoDB with customization scripts and container with Mongo client

MongoDB Examples With Golang

Quick Start: Golang & MongoDB - How to Create Documents

My First Go Microservice using MongoDB and Docker Multi-Stage Builds

About

An Example Docker With Golang and MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published