Skip to content

Latest commit

 

History

History
37 lines (19 loc) · 864 Bytes

README.md

File metadata and controls

37 lines (19 loc) · 864 Bytes

Usage

To get started, make sure you have Docker installed on your system, and then clone this repository.

Next, navigate in your terminal to the directory you cloned this, and spin up the containers for the web server by running docker-compose up -d --build.

  • Go - :4000
  • Mongo - :27017
  • Mongo-Express - :8081

Access The Mongo Express

http://localhost:8081

Your Go Source code

All the Go files should be placed inside the src folder.

MongoDB Storage

All the database data storage are mapped to you local folder mongo_storage

Go MongoDB Connection String

var conStr string = "mongodb://<user-name>:<password>@localhost:27017"

clientOptions := options.Client().ApplyURI(conStr)

Access The CLI

docker ps

docker exec -it <container ID> /bin/sh