Skip to content

Instantly share code, notes, and snippets.

@vijaydeepak-tt
Last active February 17, 2020 03:50
Show Gist options
  • Save vijaydeepak-tt/baedb8f43b5c61318abf3e1052e14724 to your computer and use it in GitHub Desktop.
Save vijaydeepak-tt/baedb8f43b5c61318abf3e1052e14724 to your computer and use it in GitHub Desktop.
Commands to create and run Dart Application through VS Code
1. Install "Dart Code" extention for VS Code.
2. run "pub global activate stagehand" with your Terminal
"pub global activate webdev"
3. Add the Path "C:\Users\<username>\AppData\Roaming\Pub\Cache\bin" to the environment variable path.
Install Chocolatey for Dart cli update:
run "choco upgrade chocolatey" to update.
Dart Installation:
run "choco install dart-sdk" to install stable version
run "choco install dart-sdk --pre" to install pre release version.
run "choco upgrade dart-sdk" to update.
CMD's:
stagehand --> returns all the available type of application can be created.
stagehand console-simple --> creates the console application required file of the dart application.
--> To run the console application use the Debuger Tab above Extention tab.
stagehand web-simple --> creates the Web application required file of the dart web application.
pub get --> installs the dependencies for the application(Web).
pub serve --> build the file and runs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment