Dartness is a progressive dart framework for building efficient and scalable server-side applications.
Dartness is a framework for building efficient, scalable dart server-side applications. It provides an easy and quick way to develop modern standalone server.
Under the hood, Dartness makes use of shelf.
Inspired by Spring Boot and Nest frameworks
Install Dart SDK version >=2.17.0
$ dart --version
Dart SDK version: 2.17.3 (stable)
$ dart create -t console your_project_name
- Add dartness into the pubspec.yaml
dependencies:
dartness_server: ^0.3.0-alpha
- Create the file in "bin/main.dart"
void main() async {
final app = Dartness(
port: 3000,
);
await app.create();
}
- Run the server
$ dart run bin/main.dart
Server listening on port 3000
You can run the example with the Dart SDK like this:
$ dart run example/main.dart
Server listening on port 3000
You can check the documentation at dartness docs
- HTTP
ControllersBind annotationsHeaderBodyParamQuery
MiddlewareInterceptor- Websockets
- Exceptions
Exception Handler
- Security
- Security interceptors(?)
- CORS
- Dependency Injection
- Injectable
- Scheduling
- Annotation
- Database
- ORM
- Repository
- Testing
- CLI