<?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>Forem: Ayush Jhawar</title>
    <description>The latest articles on Forem by Ayush Jhawar (@ayushjhawar).</description>
    <link>https://forem.com/ayushjhawar</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1991366%2Fdbb2df41-09e5-4a23-b475-553f09cfa987.gif</url>
      <title>Forem: Ayush Jhawar</title>
      <link>https://forem.com/ayushjhawar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ayushjhawar"/>
    <language>en</language>
    <item>
      <title>Integrate Daytona into Your React Project: A Step-by-Step Guide</title>
      <dc:creator>Ayush Jhawar</dc:creator>
      <pubDate>Sat, 07 Dec 2024 14:08:24 +0000</pubDate>
      <link>https://forem.com/ayushjhawar/integrate-daytona-into-your-react-project-a-step-by-step-guide-55dp</link>
      <guid>https://forem.com/ayushjhawar/integrate-daytona-into-your-react-project-a-step-by-step-guide-55dp</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Wondering what Daytona is?&lt;/strong&gt; In this post, I’ll break it down for you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;What Daytona is&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Why it matters to you?&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How it works with any project really!(But we will focus on React Projects ;)&lt;/strong&gt;
And Lastly &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The impact it can have on your development process&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s dive in!&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.amazonaws.com%2Fuploads%2Farticles%2Fxfot34qlobf2q6bj7zc4.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.amazonaws.com%2Fuploads%2Farticles%2Fxfot34qlobf2q6bj7zc4.png" alt="Daytona Screenshot" width="800" height="322"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What Daytona is?
&lt;/h2&gt;

&lt;p&gt;Daytona is a tool that helps you quickly set up and manage your development environments. It uses &lt;strong&gt;OCI containers&lt;/strong&gt; to create consistent, secure, and reproducible workspaces for your projects.&lt;/p&gt;

&lt;p&gt;With Daytona, you can skip the countless hours of figuring out the right configuration for your environment. Simply run one command, and it automatically sets everything up for you. &lt;/p&gt;

&lt;p&gt;Woah that's crazy!! Now lets see some real advantage of using Daytona.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why it matters to you?
&lt;/h2&gt;

&lt;p&gt;Daytona works across:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Any Git Service&lt;/strong&gt;: GitHub, GitLab, Bitbucket, etc.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Any IDE&lt;/strong&gt;: VS Code, JetBrains, Vim, and more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anywhere&lt;/strong&gt;: Whether it’s on localhost, AWS, or GCP.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Most Importantly
&lt;/h3&gt;

&lt;p&gt;In seconds, Daytona sets up a pre-configured environment for you. Just run:&lt;br&gt;
&lt;code&gt;daytona create &amp;lt;REPO_URL&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Seems interesting, right?&lt;/strong&gt; Now let’s take a look at how you can use it in your next react project.&lt;/p&gt;


&lt;h2&gt;
  
  
  How to use it?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Don't worry!&lt;/strong&gt; It's super easy 🍰&lt;br&gt;&lt;br&gt;
Let’s take an example of my project &lt;strong&gt;Cropify&lt;/strong&gt;, which I worked on using a Daytona workspace.&lt;/p&gt;
&lt;h3&gt;
  
  
  👉🏻 Step 1: Install Daytona
&lt;/h3&gt;

&lt;p&gt;Start by installing Daytona on your system. You can follow the step-by-step instructions in the &lt;a href="https://www.daytona.io/docs/installation/installation/" rel="noopener noreferrer"&gt;Daytona installation guide&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;
  
  
  👉🏻 Step 2: Link Daytona to Your Git Repositories
&lt;/h3&gt;

&lt;p&gt;Next, integrate Daytona with your Git provider for version control. Run the following command in your terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;daytona git-providers add
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  👉🏻 Step 3: Set Up a Cloud Provider
&lt;/h3&gt;

&lt;p&gt;To manage cloud environments such as AWS, Azure, or GCP, you’ll need to install the necessary cloud provider. Run this command to set it up:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;daytona provider install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  👉🏻 Step 4: Select Your Development Environment
&lt;/h3&gt;

&lt;p&gt;A "Target" refers to the platform where your environment will run, such as Docker (local or remote), AWS, GCP, or other cloud services. Choose your target by running this command:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;daytona target set
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  👉🏻 Step 5: Configure Your IDE
&lt;/h3&gt;

&lt;p&gt;Daytona allows seamless integration with a range of IDEs, such as VS Code, IntelliJ, and others. To set up your preferred IDE, run the following command:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;daytona ide
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  👉🏻 Step 6: Add the &lt;code&gt;devcontainer.json&lt;/code&gt; to Your Repository
&lt;/h3&gt;

&lt;p&gt;Create a &lt;code&gt;.devcontainer/devcontainer.json&lt;/code&gt; file to define the development container setup. This file configures your development environment and ensures that all required dependencies are automatically installed.&lt;/p&gt;

&lt;p&gt;You can manually create a &lt;code&gt;devcontainer.json&lt;/code&gt; file, or use tools like &lt;a href="https://devcontainer.ai/" rel="noopener noreferrer"&gt;Devcontainer AI&lt;/a&gt; to generate one for you. Below is the &lt;code&gt;devcontainer.json&lt;/code&gt; I used for &lt;strong&gt;Cropify&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
    "name": "Cropify Development Environment",
    "image": "mcr.microsoft.com/devcontainers/javascript-node:18",
    "forwardPorts": [
      3000
    ],
    "customizations": {
      "vscode": {
        "settings": {
          "javascript.validate.enable": true,
          "editor.formatOnSave": true
        },
        "extensions": [
          "esbenp.prettier-vscode",
          "dbaeumer.vscode-eslint"
        ]
      }
    },
    "postCreateCommand": "npm install"
  }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  👉🏻 Step 7: Create Your Workspace and Project
&lt;/h3&gt;

&lt;p&gt;To initialize your project and set up the development environment, simply run the following command:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;daytona create &amp;lt;REPO_URL&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  👉🏻 You're All Set!
&lt;/h3&gt;

&lt;p&gt;Your environment is now ready to go! To start your development process, just run:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The impact it can have on your development process
&lt;/h2&gt;

&lt;p&gt;Daytona can really change the way you work by making your development process faster and smoother. Here’s how:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Quick Onboarding&lt;/strong&gt;: New team members can get started in minutes with pre-configured environments—no need to waste time setting things up.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consistent Environments&lt;/strong&gt;: You’ll never hear "it works on my machine" again, as Daytona ensures everyone’s working with the same setup.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Focus on Coding&lt;/strong&gt;: Spend less time dealing with environment issues and more time building features that matter.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Better Collaboration&lt;/strong&gt;: Whether you're working solo or in a team, Daytona makes sure everyone has the same setup, making collaboration a breeze.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In short, Daytona takes the headache out of environment setup so you can focus on what really matters—coding!&lt;/p&gt;


&lt;h2&gt;
  
  
  My Final Thoughts 💡
&lt;/h2&gt;

&lt;p&gt;Honestly, Daytona has been a game-changer for me, and I’m sure it will be &lt;strong&gt;for you too&lt;/strong&gt;! It takes away the frustration of environment setup and lets you focus on what really matters—coding and building amazing projects. If you're starting a new project or just tired of wasting time on configuration, Daytona is definitely worth a try.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Now enough reading .. Go use it now!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Good luck with your projects, and happy coding! 🚀&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/daytonaio" rel="noopener noreferrer"&gt;
        daytonaio
      &lt;/a&gt; / &lt;a href="https://github.com/daytonaio/daytona" rel="noopener noreferrer"&gt;
        daytona
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      The Open Source Dev Environment Manager.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;br&gt;
&lt;div&gt;
  
    
    &lt;img alt="Daytona logo" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fdaytonaio%2Fdaytona%2Fraw%2Fmain%2Fassets%2Fimages%2FDaytona-logotype-black.png" width="40%"&gt;
  
&lt;/div&gt;



&lt;div&gt;
&lt;p&gt;&lt;a href="https://www.daytona.io/docs" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/a6875dce5b9bc7b5ca47dca1b068e5dcb068038a500da135966575bc338d75df/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646179746f6e61696f2f646f63733f6c6162656c3d446f637326636f6c6f723d323363633731" alt="Documentation"&gt;&lt;/a&gt;
&lt;a href="https://github.com/daytonaio/daytona#license" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/01ecdea1854758fa9bf0f359fa2f4464324463279ccc4b6d586e90de272e3474/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4170616368652d2d322e302d626c7565" alt="License"&gt;&lt;/a&gt;
&lt;a href="https://goreportcard.com/report/github.com/daytonaio/daytona" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/295bd4f82b11ba8bacd85262875f1c68c755cee403312c7cee959ab68c151023/68747470733a2f2f676f7265706f7274636172642e636f6d2f62616467652f6769746875622e636f6d2f646179746f6e61696f2f646179746f6e61" alt="Go Report Card"&gt;&lt;/a&gt;
&lt;a href="https://github.com/daytonaio/daytona/issues" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/3db9bc12d79f4a0378f300c7c35a4f2f72d773c750fbaef0b722cdea8e8b3db3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f646179746f6e61696f2f646179746f6e61" alt="Issues - daytona"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/baa6ce5587f122a2abc4c996fb5dd9ccc4b33eea6d914d227f3063754e01e758/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646179746f6e61696f2f646179746f6e61"&gt;&lt;img src="https://camo.githubusercontent.com/baa6ce5587f122a2abc4c996fb5dd9ccc4b33eea6d914d227f3063754e01e758/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646179746f6e61696f2f646179746f6e61" alt="GitHub Release"&gt;&lt;/a&gt;
&lt;br&gt;
&lt;a href="https://console.algora.io/org/daytonaio/bounties?status=open" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/22acd6dcf9e3a5321c52363de0e1ded1c603b8188164d4edaefbdb24c39f9731/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d6874747073253341253246253246636f6e736f6c652e616c676f72612e696f253246617069253246736869656c6473253246646179746f6e61696f253246626f756e746965732533467374617475732533446f70656e" alt="Open Bounties"&gt;&lt;/a&gt;
&lt;a href="https://console.algora.io/org/daytonaio/bounties?status=completed" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/f42498dcfd5b3407d64e22817ac1fc9be379304f803c3fad4a49003a374ba31d/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d6874747073253341253246253246636f6e736f6c652e616c676f72612e696f253246617069253246736869656c6473253246646179746f6e61696f253246626f756e74696573253346737461747573253344636f6d706c65746564" alt="Rewarded Bounties"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;br&gt;
&lt;p&gt;&lt;a href="https://www.producthunt.com/posts/daytona?utm_source=badge-top-post-badge&amp;amp;utm_medium=badge&amp;amp;utm_souce=badge-daytona" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/712ec3d008155f8c39db7cab71a1e9cb70b050877426e1758fb13337f69e93cc/68747470733a2f2f6170692e70726f6475637468756e742e636f6d2f776964676574732f656d6265642d696d6167652f76312f746f702d706f73742d62616467652e7376673f706f73745f69643d343435333932267468656d653d6c6967687426706572696f643d6461696c79" alt="Daytona - Dev environment manager that makes you 2x more productive | Product Hunt" width="250" height="54"&gt;&lt;/a&gt;
&lt;a href="https://www.producthunt.com/posts/daytona?utm_source=badge-top-post-topic-badge&amp;amp;utm_medium=badge&amp;amp;utm_souce=badge-daytona" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/d7459107bbc3c86cc6dcc78d21eabbc94ceef7f329cdba536de08a0abf6871e1/68747470733a2f2f6170692e70726f6475637468756e742e636f6d2f776964676574732f656d6265642d696d6167652f76312f746f702d706f73742d746f7069632d62616467652e7376673f706f73745f69643d343435333932267468656d653d6c6967687426706572696f643d7765656b6c7926746f7069635f69643d323637" alt="Daytona - Dev environment manager that makes you 2x more productive | Product Hunt" width="250" height="54"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;The Open Source Development Environment Manager&lt;/h1&gt;
&lt;/div&gt;

&lt;div&gt;
Set up a development environment on any infrastructure, with a single command
&lt;/div&gt;



&lt;p&gt;
    &lt;a href="https://www.daytona.io/docs" rel="nofollow noopener noreferrer"&gt;Documentation&lt;/a&gt;
    ·
    &lt;a href="https://github.com/daytonaio/daytona/issues/new?assignees=&amp;amp;labels=bug&amp;amp;projects=&amp;amp;template=bug_report.md&amp;amp;title=%F0%9F%90%9B+Bug+Report%3A+" rel="noopener noreferrer"&gt;Report Bug&lt;/a&gt;
    ·
    &lt;a href="https://github.com/daytonaio/daytona/issues/new?assignees=&amp;amp;labels=enhancement&amp;amp;projects=&amp;amp;template=feature_request.md&amp;amp;title=%F0%9F%9A%80+Feature%3A+" rel="noopener noreferrer"&gt;Request Feature&lt;/a&gt;
    ·
  &lt;a href="https://go.daytona.io/slack" rel="nofollow noopener noreferrer"&gt;Join Our Slack&lt;/a&gt;
    ·
    &lt;a href="https://twitter.com/daytonaio" rel="nofollow noopener noreferrer"&gt;Twitter&lt;/a&gt;
  &lt;/p&gt;
&lt;div&gt;&lt;a rel="noopener noreferrer" href="https://github.com/daytonaio/daytona/raw/main/assets/images/daytona_demo.gif"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fdaytonaio%2Fdaytona%2Fraw%2Fmain%2Fassets%2Fimages%2Fdaytona_demo.gif" width="50%"&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Features&lt;/h2&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Single Command&lt;/strong&gt;: Activate a fully configured development environment with a single command.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Runs everywhere&lt;/strong&gt;: spin up your development environment on any machine — whether it's local, remote, cloud-based, physical server, or a VM &amp;amp; any architecture x86 or ARM.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Configuration File Support&lt;/strong&gt;: Initially support for &lt;a href="https://containers.dev/" rel="nofollow noopener noreferrer"&gt;dev container&lt;/a&gt;, ability to expand to DevFile, Nix &amp;amp; Flox (Contributions welcome here!).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prebuilds System&lt;/strong&gt;: Drastically improve environment setup times (Contributions welcome here!).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IDE Support&lt;/strong&gt; : Seamlessly supports &lt;a href="https://github.com/microsoft/vscode" rel="noopener noreferrer"&gt;VS Code&lt;/a&gt; &amp;amp; &lt;a href="https://www.jetbrains.com/remote-development/gateway/" rel="nofollow noopener noreferrer"&gt;JetBrains&lt;/a&gt; locally, ready to use without configuration. Includes a built-in Web IDE for added convenience.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Git Provider Integration&lt;/strong&gt;: GitHub, GitLab, Bitbucket, Bitbucket Server, Gitea, Gitness, Azure DevOps, AWS CodeCommit, Gogs &amp;amp; Gitee can be connected, allowing…&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/daytonaio/daytona" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


</description>
      <category>webdev</category>
      <category>daytona</category>
      <category>react</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
