Table of Contents

How To Build Web Apps Using Dart On Windows

  1. Install Windows Package Manager Chocolatey
  2. Install Dart SDK
  3. Install Dart Webdev
  4. Run Dart Web app server

Install Windows Package Manager Chocolatey

Open windows CMD window (as administrator) and then go to following URL and install Chocolatey

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(''))

After the above command, Type following and you should see Chocolatey installed.

choco --version

Install Dart SDK

choco install dart-sdk

Install Dart Webdev

dart pub global activate webdev

Run Webdev Dart Server

Create demo app using following command...

dart create -t web-simple quickstart
cd quickstart

To start the server on port 8083, do following...

webdev serve web:8083

Above command will start the server on 8083 port. Make sure you have web folder inside your project folder quickstart.

Serving `web` on

Related Posts