🐳🐳🐳 An example of Docker REST API with Golang, MongoDB and Nginx
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contacts-resapi
mongodb first step 🐳 Oct 17, 2017
nginx-http2
README.md
docker-stack.yml
rest-API-Golang-Mongo-docker.jpg

README.md

An example of Docker Stack deployment of a Golang RESTful API connected to MongoDB, behind an NGINX proxy

Itwars docker-golang-rest-mongodb-nginx

Introduction

This repository is part of my blog post on Docker golang rest mongodb nginx.

Howto build a REST API using Golang connected to a NOSQL MongoDB Database and protected behind a NGINX proxy

To illustrate this purpose, I built a golang app that serve and store informations from MongoDB

Get app status:

curl -k -H "Content-Type: application/json" https://<your ip>/app-back-status 2>/dev/null | jq

Store new record:

curl -k -d '{"nom":"RABAH", "prenom":"Vincent", "telephone":"0000000"}' -H "Content-Type: application/json" -X POST https://<your ip>/contacts