Coder Social home page Coder Social logo

tanbinh123 / docker-golang-rest-mongodb-nginx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from itwars/docker-golang-rest-mongodb-nginx

0.0 1.0 0.0 88 KB

๐Ÿณ๐Ÿณ๐Ÿณ An example of Docker REST API with Golang, MongoDB and Nginx

Home Page: http://www.it-wars.com/posts/virtualisation/docker-exemple-golang-mongodb-rest-api/

Shell 9.90% Go 89.89% HTML 0.21%

docker-golang-rest-mongodb-nginx's Introduction

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

docker-golang-rest-mongodb-nginx's People

Contributors

itwars avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.