DEV Community

Mayank Mohapatra
Mayank Mohapatra

Posted on

Integrate DAYTONA and let the magic begin....

Daytona: Simplifying Development for Amazon Sambhav

Daytona is a secure and open-source development environment manager that simplifies your workflow. Imagine starting development on a Next.js app without the usual setup hassle. On average, developers lose 56% of their time setting up environments. Tools like Daytona eliminate that wasted time, allowing you to focus directly on innovation and building impactful solutions.

Live Demo

GitHub Repository

Daytona for Amazon Sambhav


Why Use Daytona?

Daytona simplifies the development process by seamlessly integrating with:

  • Any Git platform: GitHub, GitLab, Bitbucket
  • Any IDE: Vim, VS Code, JetBrains IDEs
  • Anywhere: Localhost, AWS, Azure, GCP, Digital Ocean

The biggest advantage?

A fully functional, pre-configured environment ready in seconds.

Just run:

daytona create https://github.com/Mayank77maruti/amazon_asambhav.git  
Enter fullscreen mode Exit fullscreen mode

That's it! Your environment is set up, so you can focus on building features, resolving issues, and creating impact.

Using Daytona for Amazon Sambhav
1️⃣ Install Daytona
Follow the official installation guide.

2️⃣ Configure Daytona
Step 1: Connect Daytona to Your Git Repositories
To manage your project with version control, connect Daytona to your Git provider:

daytona git-providers add 
Enter fullscreen mode Exit fullscreen mode

Step 2: Install a Cloud Provider
Set up your cloud environment (AWS for Sambhav) with this command:

daytona provider install
Enter fullscreen mode Exit fullscreen mode

Step 3: Set a Target
Choose where your development environment will run (Docker for local development or AWS for cloud-based solutions):

daytona target set
Enter fullscreen mode Exit fullscreen mode

Step 4: Choose Your IDE
Set up your favorite IDE (e.g., VS Code) for a seamless coding experience:

daytona ide  
Enter fullscreen mode Exit fullscreen mode

3️⃣ Add devcontainer.json to the Repository
Daytona uses devcontainer.json to define your environment.

Here’s an example you can use for Amazon Sambhav:

json

{
  "name": "Amazon Asambhav App Dev Container",
  "image": "mcr.microsoft.com/devcontainers/javascript-node:18",
  "features": {
    "docker-in-docker": {}
  },
  "forwardPorts": [3000],
  "customizations": {
    "vscode": {
      "settings": {
        "terminal.integrated.defaultProfile.linux": "bash",
        "files.autoSave": "onWindowChange",
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "esbenp.prettier-vscode"
      },
      "extensions": [
        "ms-azuretools.vscode-docker",
        "ms-vscode-remote.remote-containers",
        "dbaeumer.vscode-eslint",
        "esbenp.prettier-vscode",
        "dsznajder.es7-react-js-snippets",
        "formulahendry.auto-rename-tag",
        "bradlc.vscode-tailwindcss",
        "christian-kohler.path-intellisense",
        "ms-vscode.vscode-typescript-next",
        "amazonwebservices.aws-toolkit-vscode"
      ]
    }
  },
  "postCreateCommand": "docker build -t amazon-asambhav-app . && docker run -p 3000:3000 amazon-asambhav-app"
}
Enter fullscreen mode Exit fullscreen mode

4️⃣ Create Your Workspace and Project
Run this command to set up your Amazon Sambhav project:

daytona create https://github.com/Mayank77maruti/amazon_asambhav.git  
Enter fullscreen mode Exit fullscreen mode

5️⃣ Start Development
Launch your application with:

npm run dev  
Enter fullscreen mode Exit fullscreen mode

Highlights
Pre-configured environment: Optimized for JavaScript/Node.js development using Microsoft’s devcontainer image.
Post-setup automation: Automatically installs dependencies with npm install.
VS Code productivity: Pre-installed extensions and settings boost productivity.
Cloud-ready: Easily integrates with AWS, enabling scalable deployment.

Top comments (0)