Code Monkey home page Code Monkey logo

mongodb's Introduction

MongoDB Open Microservice

This is a mongodb service

Open Microservice Specification Version Open Microservices Spectrum Chat Open Microservices Code of Conduct Open Microservices Commitzen PRs Welcome

Introduction

This project is an example implementation of the Open Microservice Specification, a standard originally created at Storyscript for building highly-portable "microservices" that expose the events, actions, and APIs inside containerized software.

Getting Started

The oms command-line interface allows you to interact with Open Microservices. If you're interested in creating an Open Microservice the CLI also helps validate, test, and debug your oms.yml implementation!

See the oms-cli project to learn more!

Installation

npm install -g @microservices/oms

Usage

Open Microservices CLI Usage

Once you have the oms-cli installed, you can run any of the following commands from within this project's root directory:

Actions

find
Action Arguments
Argument Name Type Required Default Description
db string true None No description provided.
coll string true None No description provided.
query map true None No description provided.
sort map false None No description provided.
fields map false None No description provided.
MONGODB_URI string false None The MongoDB URI to be used in the connection. Defaults to mongodb://localhost:27017/.
oms run find \ 
    -a db='*****' \ 
    -a coll='*****' \ 
    -a query='*****' \ 
    -a sort='*****' \ 
    -a fields='*****' \ 
    -e MONGODB_URI=$MONGODB_URI
findOne
Action Arguments
Argument Name Type Required Default Description
db string true None No description provided.
coll string true None No description provided.
query map true None No description provided.
sort map false None No description provided.
fields map false None No description provided.
MONGODB_URI string false None The MongoDB URI to be used in the connection. Defaults to mongodb://localhost:27017/.
oms run findOne \ 
    -a db='*****' \ 
    -a coll='*****' \ 
    -a query='*****' \ 
    -a sort='*****' \ 
    -a fields='*****' \ 
    -e MONGODB_URI=$MONGODB_URI
insert
Action Arguments
Argument Name Type Required Default Description
db string true None No description provided.
coll string true None No description provided.
doc map true None No description provided.
MONGODB_URI string false None The MongoDB URI to be used in the connection. Defaults to mongodb://localhost:27017/.
oms run insert \ 
    -a db='*****' \ 
    -a coll='*****' \ 
    -a doc='*****' \ 
    -e MONGODB_URI=$MONGODB_URI

Contributing

All suggestions in how to improve the specification and this guide are very welcome. Feel free share your thoughts in the Issue tracker, or even better, fork the repository to implement your own ideas and submit a pull request.

Edit mongodb on CodeSandbox

This project is guided by Contributor Covenant. Please read out full Contribution Guidelines.

Additional Resources

mongodb's People

Contributors

ht68rohit avatar judepereira avatar matthewhudson avatar rohit121 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.