Configurable http server in dart.
pub global activate dartnet
pub run dartnet:dartnet
Usage 'dartnet' : -c, --config (defaults to "dartnet.yaml") -h, --help COMMANDS: init Create config file with default value. -f, --filename (defaults to "dartnet.yaml") dockerize Create a Dockerfile from the Dartnet config file -f, --filename (defaults to "dartnet.yaml")
Dartnet use a configuration file (default: 'dartnet.yaml')
address: "0.0.0.0" port: 1337 root_directory: build
This will serve all file under the 'build' directory.
address: "0.0.0.0" #default: 0.0.0.0 port: 1337 #default: 8080 root_directory: web #default: build multithread: true #default: true log: info #default: info log_file: "dartnet.log" #default: dartnet.log list_directory: false #default: false gzip: true #default: true redirections: path: /: "index.html" #default behavior /redirect: "https://www.google.com" /**: "index.html" 404: error.html https: cert: ssl/cert.pem key: ssl/key.pem password_key: "dartnet"
cd example dartnet
dartnet initcommand: create the default config file
You can install the package from the command line:
$ pub global activate dartnet
The package has the following executables:
Add this to your package's pubspec.yaml file:
dependencies: dartnet: "^0.2.0"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.2.0||Feb 24, 2017|
|0.1.2||Feb 22, 2017|
|0.1.1||Feb 22, 2017|
|0.1.0||Feb 13, 2017|
|0.0.2||Feb 11, 2017|
|0.0.1+2||Feb 11, 2017|
|0.0.1+1||Feb 11, 2017|
|0.0.1||Feb 11, 2017|
We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, other
Fix analysis and formatting issues.
Analysis or formatting checks reported 3 errors 2 hints.
Strong-mode analysis of
lib/src/handler.dartfailed with the following error:
line: 4 col: 8
Target of URI doesn't exist: 'package:glob/glob.dart'.
Strong-mode analysis of
lib/src/logger.dartgave the following hint:
line: 18 col: 55
'APPEND' is deprecated and shouldn't be used.
Similar analysis of the following files failed:
Package is getting outdated.
The package was released 68 weeks ago.
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*, it usually means that the author is still experimenting with the general direction API.
Maintain an example.
None of the files in your
example/directory matches a known example patterns. Common file name patterns include:
example.dartor you could also use
|Dart SDK||>=1.0.0 <2.0.0|