Skip to content
golang mongo http server example
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.
docker
mongo-data
src/gomongo
.gitignore
README.md
build.sh

README.md

gomongo

Simple example implementation of an HTTP service connected to mongodb.

Used in the blog posts:

Startup

requirements

To run this example you need to have

  • docker 1.9+
  • docker-compose 1.6.+

To see it in action, check it out

git clone git@github.com:envimate/gomongo.git

cd gomongo

Then run using docker-compose

docker-compose -f docker/docker-compose.yml up -d

By default port 80 is mapped so you should see:

curl http://localhost:80/test

got request /test

You can’t perform that action at this time.