Sign inSign up

rhysperry111/micromongo

By rhysperry111

•Updated over 2 years ago

Micromongo is a HTTP microservice to interact with a mongo database.

Image
Databases & storage
0

814

rhysperry111/micromongo repository overview

https://github.com/rhysperry111/micromongo/⁠

⁠Micromongo

Micromongo is a HTTP microservice to interact with a mongo database.

Usage:
  GET    /<collection>?number=<n>&skip=<s>&filter=<f> => get n entries in collection that match f (skip s)
  GET    /<collection>/<id>                           => get entry in collection with id
  POST   /<collection> [json]                         => add an entry to collection using json
  PATCH  /<collection>?filter=<f> [json]              => update the entries in collection that match f using json
  PATCH  /<collection>/<id> [json]                    => update the entry in with id using json
  PUT    /<collection>/<id> [json]                    => replace the entry in with id using json
  DELETE /<collection>?filter=<f>                     => delete all entries in collection that match f
  DELETE /<collection>/<id>                           => delete the entry in collection with id

Environment variables:

  • HOST: The host of the mongo database
  • USER: The username to authenticate to the database with
  • PASS: The password to authenticate to the database with
  • DATABASE: The database to use for queries with mongo

There is a basic kubernetes deployment and service in micromongo.yaml, and it can be run in docker using the image rhysperry111/micromongo. The default port exposed it 8000

Tag summary

Content type

Image

Digest

sha256:6b617fd71…

Size

372.4 MB

Last updated

over 2 years ago

docker pull rhysperry111/micromongo