How To Build Web Apps Using Dart On Windows
- Install Windows Package Manager Chocolatey
- Install Dart SDK
- Install Dart Webdev
- 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
https://chocolatey.org/install
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
After the above command, Type following and you should see Chocolatey installed.
choco --version 0.11.3
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 http://127.0.0.1:8083