Giter Club home page Giter Club logo

atlas-functions-triggers-examples's Introduction

Atlas Functions and Triggers Examples

This is the main repo for all MongoDB App Services Function and Trigger examples. The examples in this repo are all tested to ensure that they work as expected.

A GitHub Action uploads to the atlas-functions-triggers-examples S3 bucket. A push to the development branch uploads to the development directory, and a push to main uploads to the production directory.

For bucket access, consult the Developer Docs team.

Add Function and Trigger Snippets

The Developer Docs team maintains these code snippets as tested examples. Adding a new snippet involves:

  1. Adding a Function or Trigger to the Atlas backend (ask Dev Docs for details and access).
  2. Adding a relevant test for the Function or Trigger to the test suite. Refer to the README in the test/integration directory for more details.
  3. Exporting or pulling the Atlas backend with your Function or Trigger, and adding the relevant file(s) to this repository's backend.
  4. Running the Bluehawk script in the tools directory to copy the files from the backend into the snippets files that get uploaded to S3.
  5. Adding a metadata file to the metadata directory with a title and other relevant details based on the type of snippet you're adding.

Details about filenames and metadata schema will be added to this repository after the spec is finalized.

If you are not a member of the Bushicorp org, create your own test app to test the Function or Trigger, and the Developer Docs team will import your Function or Trigger into the org test app as part of your PR. You can use the backend in this repository to create your own test app that should run the entire test suite successfully.

atlas-functions-triggers-examples's People

Contributors

mongocaleb avatar dacharyc avatar krollins-mdb 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.