You can import the ready-made MongoDB Realm backend using the
mongodb-realm-cli
, which you can install with npm:
npm install -g mongodb-realm-cli
To have a backend for your Task ledesma app, you will need a MongoDB Atlas cluster with MongoDB 4.4 or higher. To create an Atlas account, project, and cluster, visit the Atlas UI.
⚠️ Sync requires MongoDB 4.4 or above. Be sure to select at least MongoDB version 4.4 when building your cluster!
To authenticate with the realm-cli
, you must create an API key with Project
Owner permissions for your project in the Project Access Manager view.
Click the Access Manager at the top of the Atlas view to find it. Please
follow the instructions on the MongoDB documentation
site
for more information.
Once created, pass the API keys to realm-cli login
to log in:
realm-cli login --api-key=[public API key] --private-api-key=[private API key]
If logged in successfully, you can now import the app:
cd realm-tutorial-backend
realm-cli push
Follow the prompts and wait for the app to deploy.
Congratulations! You now have a working MongoDB Realm backend with Sync enabled.
If you find an issue or have a suggestion, please let us know using the feedback widget on the docs site.
This repo is automatically derived from our main docs repo. If you'd like to submit a pull request -- thanks! -- please feel free to do so at https://github.com/mongodb/docs-realm/ (see the tutorial/ subdirectory).