<?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: Daksh kumawat</title>
    <description>The latest articles on DEV Community by Daksh kumawat (@dakshkumawat07).</description>
    <link>https://dev.to/dakshkumawat07</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%2F4174470%2Ffb0c4706-cd5b-4a12-8789-b3f8cf64b91d.jpg</url>
      <title>DEV Community: Daksh kumawat</title>
      <link>https://dev.to/dakshkumawat07</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dakshkumawat07"/>
    <language>en</language>
    <item>
      <title>full stack deployment</title>
      <dc:creator>Daksh kumawat</dc:creator>
      <pubDate>Sat, 10 Oct 2026 03:13:49 +0000</pubDate>
      <link>https://dev.to/dakshkumawat07/full-stack-deployment-53oe</link>
      <guid>https://dev.to/dakshkumawat07/full-stack-deployment-53oe</guid>
      <description>&lt;h1&gt;
  
  
  I Deployed My First Full-Stack App and Everything Broke. Here's What I Learned
&lt;/h1&gt;

&lt;p&gt;Building a full-stack app on your laptop is one thing. Putting it on the internet is another. During my internship at Valentius Kryptix, I deployed a task manager with a Django REST Framework backend and a React frontend, and almost every step produced an error I had never seen locally. Here is a short summary of what broke and what fixed it.&lt;/p&gt;

&lt;p&gt;The backend runs on Render with a managed PostgreSQL database, and the frontend, built with React and Vite, runs on Vercel. Users register and log in with JWT authentication, and each user only sees their own tasks.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bugs, in the order they hit me
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;CORS blocked everything.&lt;/strong&gt; The frontend loaded, but every API call failed with a network error. Browsers refuse requests to a different origin unless the backend explicitly allows it, so I whitelisted the exact Vercel domain instead of allowing every origin.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The database was empty.&lt;/strong&gt; Registration returned a server error because the new PostgreSQL database had no tables. Migrations had never run, and Render's free tier has no shell or release command, so I added the migrate step to the build command.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Refreshing a page gave a 404.&lt;/strong&gt; React Router handles routes in the browser, so the server had no file at /tasks. A small rewrite rule in vercel.json that sends every path to index.html fixed it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Secrets were hardcoded.&lt;/strong&gt; Moving the secret key, database URL and API base URL into environment variables let the same code run locally and in production without committing anything sensitive to Git.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would tell anyone deploying for the first time
&lt;/h2&gt;

&lt;p&gt;Most deployment failures are configuration problems, not code problems, so read the logs before changing any code. Then test the live site like a stranger would. I only noticed that my app had no sign-up page because I tried registering a brand-new account on the deployed version, something local testing had never forced me to do.&lt;/p&gt;

&lt;p&gt;My quick checklist now: environment variables set in the dashboard, migrations applied, CORS lists the real frontend domain, a rewrite rule exists for client-side routing, and a fresh account can register, log in and complete every CRUD action on the live site.&lt;/p&gt;

&lt;p&gt;Deploying early and in small steps makes every failure easier to trace. Debugging one broken piece is far less painful than debugging five at once, and each fix I made taught me something about how the frontend, the API and the database actually fit together in production.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Read the full article:&lt;/strong&gt; &lt;a href="https://valentiuskryptix.com/4-important-things-to-consider-while-taking-full-stack-app-live/" rel="noopener noreferrer"&gt;4 Important Things to Consider While Taking Full-Stack App Live&lt;/a&gt;&lt;/p&gt;

</description>
      <category>deployment</category>
      <category>django</category>
      <category>react</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
