<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rohit Mahto</title>
    <description>The latest articles on DEV Community by Rohit Mahto (@rohit267).</description>
    <link>https://dev.to/rohit267</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4099733%2Fd1ce2b36-e38a-429c-9f68-692b1e1788fe.jpg</url>
      <title>DEV Community: Rohit Mahto</title>
      <link>https://dev.to/rohit267</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rohit267"/>
    <language>en</language>
    <item>
      <title>I deployed a MERN app for the first time free for 30 days, here's exactly what I clicked</title>
      <dc:creator>Rohit Mahto</dc:creator>
      <pubDate>Sat, 29 Aug 2026 05:37:09 +0000</pubDate>
      <link>https://dev.to/rohit267/i-deployed-a-mern-app-for-the-first-time-free-for-30-days-heres-exactly-what-i-clicked-10f0</link>
      <guid>https://dev.to/rohit267/i-deployed-a-mern-app-for-the-first-time-free-for-30-days-heres-exactly-what-i-clicked-10f0</guid>
      <description>&lt;p&gt;&lt;em&gt;Full disclosure: I built &lt;a href="https://dormhost.dev" rel="noopener noreferrer"&gt;DormHost.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I wrote up &lt;a href="https://github.com/rohit267/shrtn" rel="noopener noreferrer"&gt;the code for shrtn&lt;/a&gt; in an earlier post, a small real link shortener: MongoDB, Express, React, Node. This post is the other half, aimed at anyone who's never deployed a full-stack app before. Every screenshot below is the real dashboard, not a mockup, and the app is actually live at the end of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Sign in
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://dash.dormhost.dev" rel="noopener noreferrer"&gt;dash.dormhost.dev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;No signup form, no password to invent, no email to verify. One button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0ia6e86yva9kax4tz6s5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0ia6e86yva9kax4tz6s5.png" alt="Sign in page with Continue with GitHub and Continue with Google buttons" width="800" height="458"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Create the app
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://dash.dormhost.dev/apps/new" rel="noopener noreferrer"&gt;dash.dormhost.dev/apps/new&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Give it a name, paste your GitHub repo URL, pick a region near you. That's the whole form. You don't need to know what a Dockerfile is, it reads your repo and figures out how to build it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg6kprfiu49px1b9mar9b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg6kprfiu49px1b9mar9b.png" alt="New app form filled in with the shrtn repo, name, plan and region" width="800" height="458"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Press create and it builds right away, no separate "now deploy" step.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Add a database
&lt;/h2&gt;

&lt;p&gt;Open the Database section on your app's page. If your app needs one, pick MongoDB, click once.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fclx9wj5oxnjk9widvidb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fclx9wj5oxnjk9widvidb.png" alt="Database section showing a provisioned MongoDB with connection details" width="800" height="458"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You don't copy a connection string anywhere. It shows up inside your app as an environment variable, &lt;code&gt;MONGODB_URI&lt;/code&gt;, already pointed at a real database. Your code just reads &lt;code&gt;process.env.MONGODB_URI&lt;/code&gt;. More on how this works for a MERN project specifically in the &lt;a href="https://dormhost.dev/use-cases/mern.html" rel="noopener noreferrer"&gt;DormHost MERN guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. One thing that will trip you up (it tripped me up)
&lt;/h2&gt;

&lt;p&gt;If your app connects to the database in code that runs at startup, and you deploy &lt;em&gt;before&lt;/em&gt; adding the database, the first deploy will crash. Mine did, with an error about &lt;code&gt;127.0.0.1:27017&lt;/code&gt;, the address for a database running on your own laptop, not this one.&lt;/p&gt;

&lt;p&gt;Nothing was wrong with the code. The database just didn't exist yet when that first build ran. Fix: add the database, then hit deploy again. One click, not a bug to chase. The &lt;a href="https://dormhost.dev/docs.html" rel="noopener noreferrer"&gt;docs&lt;/a&gt; cover this and the other usual first-deploy snags.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. It's live
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9g4nqcpyua3gxoxncnug.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9g4nqcpyua3gxoxncnug.png" alt="The deployed shrtn app, a working link shortener form with two real shortened links" width="800" height="458"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's a real, working app, with a real database behind it, and I never touched a terminal to get it there. 30 days free to try it yourself, no card needed.&lt;/p&gt;

&lt;p&gt;Code: &lt;a href="https://github.com/rohit267/shrtn" rel="noopener noreferrer"&gt;github.com/rohit267/shrtn&lt;/a&gt;&lt;br&gt;
Live: &lt;a href="https://shrtn-rohitmahto267.dormhost.app" rel="noopener noreferrer"&gt;shrtn-rohitmahto267.dormhost.app&lt;/a&gt;&lt;br&gt;
Try it: &lt;a href="https://dormhost.dev" rel="noopener noreferrer"&gt;dormhost.dev&lt;/a&gt;&lt;/p&gt;

</description>
      <category>dormhost</category>
      <category>mern</category>
      <category>linkshortner</category>
      <category>free</category>
    </item>
  </channel>
</rss>
