DEV Community

Faith Morante
Faith Morante

Posted on

4 1

Guide on Github deployment with MongoDB Realm

Hi, me and a friend teamed up for the MongoDB hackathon. And I'm super excited for it! With our idea, it seems like Realm would be the cool features to utilize for this.

It sounds like AWS Lambdas, so I kind of have an idea how this works. And so I was looking for a way to integrate github deployment to my Realm app. Turns out they do have that option! But I hit some roadblocks:

  • In the docs, it says there should be an app configuration, but there were so many folders, which ones are actually required?
  • What's the best way? To start with an empty repo or with the app config?
  1. I advise you guys to start with a repo with an /app and a realm_config.json inside it
  2. Link your github account in Realm.

link github to realm

It should practically look like that. Make sure the directory points to /app (the docs says its on /dist, and that really confused me), and enable Automatic Deployment so that everytime you make changes in your repo, it will deploy here

  1. Then to populate your repo, go to Environment Tab, and choose Development, hit Save

environment tab

  1. Go to History Tab, there should be a button saying: Review Draft & Deploy. Click that and deploy it, what it does is the changes merges to your repo and it populates your app directory

That should be it, let me know if this helped you,

Cheers!
FM

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay