Skip to content
A sample Dart HTTPS server app compiled to native executables for Windows, Linux and MacOS.
Dart
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
bin
lib
test
.gitignore
CHANGELOG.md
README.md
analysis_options.yaml
pubspec.yaml

README.md

Dart2Native sample web server app.

A sample dart web app compiles to native executable using Dart2Native tool.

GitHub Workflow Status

Generate X509 Cert

$ openssl req -newkey rsa:4096 \
    -new -nodes -x509 \
    -days 3650 \
    -out cert.pem \
    -keyout key.pem \
    -subj "/C=US/ST=California/L=San Jose/O=Suresh/OU=Dev/CN=localhost"

Build & Run

$ dart2native bin/main.dart -DdefaultPort=8445 -o test-server 
$ ./test-server
You can’t perform that action at this time.