hello-world

command module
v0.0.0-...-e4391c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

Hello world for MongoDB with go

The purpose of this tutorial is to execute a simple command on a MongoDB database.

Requirements

You need first to have a MongoDB service available. More information here

Build and run

Once you have created your user, and set up your IP restrictions you can run the following:

read USER
read -s PASSWORD
read URI
docker build -t mongodb-go-hello-world .
docker run mongodb-go-hello-world "$(echo -n $URI | sed "s/<username>/$USER/" | sed "s/<password>/$PASSWORD/")"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL