/lovable-integrations

Lovable and IntelliJ IDEA integration: Step-by-Step Guide 2025

Discover how to integrate Lovable with IntelliJ IDEA effortlessly. Follow our concise, step-by-step guide to streamline your workflow and boost your coding productivity.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free No-Code consultation

How to integrate Lovable with IntelliJ IDEA?

 

Installing Dependencies in package.json

 
  • Create or open the file named package.json in the root of your Lovable project.
  • Add the following dependencies and scripts. Since Lovable has no terminal, these settings ensure that the required packages are declared for TypeScript support and running your code with ts-node:

{
  "name": "lovable-project",
  "version": "1.0.0",
  "dependencies": {
    // Your project dependencies go here.
  },
  "devDependencies": {
    "typescript": "^4.9.5",
    "ts-node": "^10.9.1"
  },
  "scripts": {
    "build": "tsc",
    "start": "ts-node src/index.ts"
  }
}
  • Make sure to save the file. The dependencies will be recognized by IntelliJ IDEA when it reads the project configuration.

 

Creating the TypeScript Configuration File

 
  • Create a new file called tsconfig.json in the root directory of your project.
  • This file tells the TypeScript compiler how to compile your code. Insert the following configuration:

{
  "compilerOptions": {
    "target": "es6",
    "module": "commonjs",
    "rootDir": "src",
    "outDir": "dist",
    "strict": true,
    "esModuleInterop": true
  },
  "include": [
    "src"
  ]
}
  • This configuration sets src as your source folder and dist as your output folder. It also enables strict type checking.

 

Creating a TypeScript Source File

 
  • Inside your project root, create a folder named src if it does not already exist.
  • In the src folder, create a new file called index.ts.
  • Insert the following TypeScript code into index.ts as a simple example to test your integration:

console.log("Lovable project running with IntelliJ IDEA integration");
  • This code prints a message to the console when executed.

 

Configuring IntelliJ IDEA Run/Debug Configuration

 
  • In IntelliJ IDEA, open your Lovable project.
  • Go to the menu and select Run -> Edit Configurations....
  • Click the + button to add a new configuration and choose Node.js (or Node.js configuration, depending on your version).
  • Fill in the following details in the new configuration:
    • Name: Enter a name like Lovable TS.
    • JavaScript file: Set this to src/index.ts if you want to run directly with ts-node. If you prefer to compile first, point this to dist/index.js after running the build script.
    • Working directory: Ensure it is set to your project's root directory.
  • Apply the changes and close the configuration dialog.

 

Running and Testing the Integration

 
  • To run your project, select the Lovable TS configuration from the run/debug selector in IntelliJ IDEA.
  • Click the Run button. IntelliJ IDEA will invoke the start script defined in package.json using ts-node, executing the src/index.ts file.
  • You should see the message "Lovable project running with IntelliJ IDEA integration" in the IntelliJ IDEA console.
  • This confirms that your project has been integrated successfully with IntelliJ IDEA using TypeScript.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022