DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Build a Face-Matching ID Scanner With ReactJS and AI
  • From Zero to Meme Hero: How I Built an AI-Powered Meme Generator in React
  • Building Your Own AI Chatbot With React and ChatGPT API
  • Build ChatGPT 2.0 With React JS

Trending

  • Detecting Advanced Persistent Threats Using Behavioral Analytics and Log Correlation
  • Navigating the Complexities of AI-Driven Integration in Multi-Cloud Environments: A Veteran’s Insights
  • Modernization Is Not Migration
  • Setting Up a Data Catalog With Azure Purview and Collibra: What Three Attempts Taught Me
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Ditch Your Local Setup: Develop Apps in the Cloud With Project IDX

Ditch Your Local Setup: Develop Apps in the Cloud With Project IDX

Start building web apps in the cloud with Project IDX! This guide explores the features of Google's cloud IDE and shows you how to create a new React project.

By 
Anujkumarsinh Donvir user avatar
Anujkumarsinh Donvir
DZone Core CORE ·
Nov. 04, 24 · Tutorial
Likes (8)
Comment
Save
Tweet
Share
14.2K Views

Join the DZone community and get the full member experience.

Join For Free

Recent years have seen a rise in cloud-based IDEs and several options have emerged such as CodeSandBox, Replit, StackBlitz, and more. Cloud-based IDEs allow programming without the need to have a dedicated developer specification machine as they run in the browser directly. They provide complete freedom of writing software from anywhere and anytime. These IDEs have traditionally been great at creating showcase demos and POCs, and have their limitations. In August 2023, Google launched its own cloud-based IDE known as Project IDX. Project IDX provides a complete development environment for developing multi-platform applications.

Benefits of Project IDX

Project IDX has several key benefits over other major cloud-based IDEs:

CODE OSS

Project IDX has a familiar IDE editor, similar to Visual Studio Code, which several developers are already accustomed to. It uses the same open-source platform Code OSS, on which VS Code has been developed. This allows importing VS Code plugins into the Project IDX editor as well. 

Project IDX Editor

Figure 1: Project IDX Editor

Debian VM

Every Project IDX workspace runs on its own Debian Linux-based VM. Developers can install their go-to tooling using the terminal on these VMs. The VMs start and stop on their own based on the need automatically. This allows each workspace to have complete development capabilities without relying on the end user's machine. This has key benefits as Project IDX workspace doesn't compete for resources on local machines while allowing developers to code with a familiar set of tools.

Live Reloads

Project IDX shows a live preview of the project getting built and the preview gets auto-updated as the developer types the code.

Project IDX Live Reload

Figure 2: Project IDX Live Reload

Prebuilt Templates

Project IDX comes with several prebuilt templates to enable bootstrapping a new Web App, Backends, Mobile Apps, AI/ML projects, and more instantly. This ability allows developers to write feature code quickly without needing to worry about initial boilerplate code.Project IDX Templates

Figure 3: Project IDX Templates

Built-In AI Support

Project IDX workspace has deep coupling with the Google Gemini Generative AI model. Gemini can assist as a code completion and generation tool inside the workspace and there is also a dedicated chat window for direct chat.

Gemini inside Project IDX

Figure 4: Gemini inside Project IDX

Creating a New React Application in Project IDX

Now that you have an overview of what Project IDX is and its key features, it is time to get your hands dirty with a project. You can follow the steps provided below to launch a new React application inside Project IDX.

  • Navigate to Project IDX using this URL. You must be logged into your Google account.
  • Click the Get Started button. You will be navigated to accepting terms and conditions. After accepting the Terms and Conditions, you will be asked to enable support of AI. This allows you to get assistance from the Google Gemini GenAI model.
  • Now you will be redirected to a page where you can select a template to begin your project. You should see various starting templates as shown in the illustration provided earlier (Figure 2). You may need to click the See All Templates button and go to the Web App tab to see the React template. Click on the React template, which then will ask you to name your project. Choose a name of your liking and optionally select between JavaScript and TypeScript. After that, hitting the Create button should initialize the project and you should see details as highlighted in the illustration below.

New Project Configuration

Figure 5:  New Project Configuration
  • Once the configuration of the project is complete, you should see your code loaded inside the VS code-like editor and the live preview of your project. 
  • Open the app.tsx file and update the code in the return method as given below.
TypeScript-JSX
 
  // app.tsx
  return (
    <>
      <p>Hello Project IDX React</p>
    </>
  )


  • Your live reload window should refresh and you should see output as shown in the illustration below. 

Updated View after Code Change

Figure 6: Updated View after Code Change

Conclusion

You have learned about Project IDX and its main features in this article. Moreover, you have launched a brand new React project, modified its code, and have seen your changes get reflected automatically. Project IDX is much more than just a code editor: it is a complete workspace for developing complex applications.  Go ahead and code the feature of your desire and explore more templates provided by Project IDX that suit your needs better. 

AI Integrated development environment JavaScript Cloud React (JavaScript library)

Opinions expressed by DZone contributors are their own.

Related

  • Build a Face-Matching ID Scanner With ReactJS and AI
  • From Zero to Meme Hero: How I Built an AI-Powered Meme Generator in React
  • Building Your Own AI Chatbot With React and ChatGPT API
  • Build ChatGPT 2.0 With React JS

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook