serinus
Serinus 是使用 Dart 編寫的框架,用於建立高效且可擴展的伺服器端應用程式。
Serinus 是一個極簡的框架,用於建立高效且可擴展的 Dart 後端應用程式。🎯
以下為英文專案原文快照,最新內容請造訪 GitHub。
Serinus Banner
https://img.shields.io/github/actions/workflow/status/francescovallone/serinus/serinus.yml?logo=dart&label=Tests Discord CodeFactor
Serinus provides a powerful and flexible framework for building server-side applications in Dart. Our open-source Dart framework, packages, and tools make it easy to create high-performance, scalable, and maintainable applications.
To install Serinus you can either install the official CLI tool globally using pub:
dart pub global activate serinus_cli
or add Serinus to your pubspec.yaml file:
dart pub add serinus
If you have installed the Serinus CLI tool, you can create a new Serinus project using the following command:
serinus create <project_name>
This will bootstrap a new Serinus project in a directory named <project_name>.
cd <project_name>
serinus run
By default the server will run on port 3000 and will listen for requests on localhost. You can change these settings modifying the file where you have defined the application (by default this file is lib/main.dart) or by passing the --port and --host flags to the run command:
serinus run --port=8080 --host=localhost
You can also start the application in development mode adding the --dev flag to the command:
serinus run --dev
In development mode the server will automatically restart when you change the source code.
You can find the documentation here.
Serinus is licensed under the MIT license. See the LICENSE file for more info.
If you want to contribute to Serinus, please read the CONTRIBUTING file.
We would like to thank our sponsors for their support: