Content-Length: 262033 | pFad | http://github.com/itwars/docker-golang-rest-mongodb-nginx/#start-of-content

A4 GitHub - itwars/docker-golang-rest-mongodb-nginx: 🐳🐳🐳 An example of Docker REST API with Golang, MongoDB and Nginx
Skip to content

itwars/docker-golang-rest-mongodb-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

🐳🐳🐳 An example of Docker REST API with Golang, MongoDB and Nginx

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/itwars/docker-golang-rest-mongodb-nginx/#start-of-content

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy