DEV Community

nigel447
nigel447

Posted on

2 1

run dart-frog in intellij

As a dartlang enthusiast I am sharing a setup to run the dartfrog development server in Intellij.

There is a dart-frog VSCode extension sadly while Intellij has a good dart plugin I struggled to create runtime configs, I did not want to have to run the dartfrog cli in a separate terminal. Using the Intellij default ant plugin I was able to easily set up a dev mode run config looks like this

<project name="secure-context" default="run_dev" basedir=".">
    <target name="run_dev">
        <exec executable="dart_frog">
        <arg value="dev" />
        </exec>
    </target>
</project>
Enter fullscreen mode Exit fullscreen mode
  1. copy this into a file called build.xml in project root dir
  2. with the ant plugin Intellij will prompt you to add it as a runtime build
  3. double click on the task run_dev and the dart frog dev server will boot.

build setup

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay