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: