Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Latest commit

 

History

History
62 lines (46 loc) · 2.17 KB

README.md

File metadata and controls

62 lines (46 loc) · 2.17 KB

Dart2Native HTTPS & RSocket sample app

AOT compiles a Dart app to native executable for Windows, Linux and macOS using Dart2Native tool.

GitHub Workflow Status Dart Pub Version Style guide

Build

  • Install Dart SDK

    $ brew tap dart-lang/dart
    $ brew install dart
  • Build

    $ dart2native bin/main.dart -DdefaultPort=8445 -o test-server 
    
    # Running the server
    $ ./test-server --help 
    $ ./test-server -s
    $ ./test-server -l https://google.com -s

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"

Misc