MongoDB Stitch¶
MongoDB Stitch is a backend as a service that provides an HTTP API to MongoDB, integration with other services, and a declarative rules infrastructure which spans database and service actions. MongoDB Stitch can:
- ➤ Add a Feature to an Existing Application
For existing applications, MongoDB Stitch can facilitate the addition of new features. For example, you can use MongoDB Stitch to:
- Add commenting to a blog (See Building A Blog App).
- Add reviews to an e-commerce site
- Provide richer user profiles by allowing users to upload photos.
- ➤ Control How You Expose Data to Users or Anonymous Users
For existing Atlas clusters, you can easily and safely expose data to new users or application. For example, you can:
- Give users an easy way to read their own data (See ToDo Web App).
- Easily build admin pages exposing anonymous stats to admin users.
- Display a leaderboard.
- ➤ Integrate with Services
If you are not ready to adopt the full functionality of MongoDB Stitch, you can just use MongoDB Stitch to make integrating with services easier. For example:
- Accept text messages from Twilio and insert into MongoDB (See Integrate the ToDo App with Twilio).
- Integrate with Google Cloud Messaging (GCM) service to send notifications (See Push Notifications).
- ➤ Be the Full Backend for Your Application
- Use MongoDB Stitch to be the full backend for your application.
- Getting Started
- Tutorials
- Building A Blog App
- Overview
- Create the HTML page
- Create an Atlas cluster
- Initialize MongoDB Stitch app
- Turn on anonymous authentication
- Set up our comments collection
- Add the MongoDB Stitch JavaScript SDK to our HTML page
- Initiate a client connection
- Display comments
- Allow anyone to read comments
- Add a form for creating comments
- Completed
blog.html
- Overview
- Dashboard
- Building a Web-based To-Do App
- ToDo (Android App)
- Prerequisites
- Procedure
- A. Create a MongoDB Stitch App
- B. Define Rules
- Configure MongoDB.
- Review Read Rules for Top-Level Documents in
todo.items
. - Modify Write Rules for Top-Level Documents in
todo.items
. - Review Validation Rules for
owner_id
field intodo.items
. - Review
All Other Fields Enabled
option fortodo.items
. - Review Filters for
todo.items
. - C. Set Up Authentication
- Add authentication information in MongoDB Stitch.
- D. Download the Application Source Code
- E. Configure and Run the Application
- Open the project in Android Studio.
- Update project with your MongoDB Stitch App ID.
- Update project with your Facebook App ID.
- Review MongoDB Stitch connection logic in application source file.
- Run the
todo
app.
- ToDo (iOS App)
- IoT Temperature Tracker
- Push Notifications (Android App)
- Examples on GitHub
- Building A Blog App
- Authentication
- Users
- Rules
- Functions
- Services
- Service Actions
- Service Rules
- Service Webhooks
- Partner Services
- MongoDB (Atlas)
- MongoDB Actions
- MongoDB Rules
- Values
- Client SDKs
- Import/Export
- Troubleshooting
© MongoDB, Inc 2008-present. MongoDB, Mongo, and the leaf logo are registered trademarks of MongoDB, Inc.