Dartive
import 'package:dartive/dartive.dart';
void main(List<String> arguments) {
Dartive.get('/', () {
return {'message': 'Hello, world!'};
});
Dartive.listen(host: '0.0.0.0', port: 8080);
}
💡
Dartive is an ExpressJS-like wrapper for Dart backend. Its primary focus is to simplify your codebase while retaining the power and flexibility of Dart.
Key Features
- Route Handling: With Dartive, you can easily and intuitively define GET, POST, PUT, DELETE, and other routes.
- Request Parsing: Dartive enables parsing of incoming request bodies using built-in JSON decoding and custom data models.
- Server Configuration: Customize your server host and port with a single line of code.
Documentation
The documentation is currently a work in progress. Till then, we have the basic instructions on setting up Dartive on your local machine! Click the docs for more information
✅
With Dartive, you can achieve simplified routing, streamlined request parsing and easy server configuration.
And your backend will be simple, powerful and flexible.
Installation
To include Dartive in your Dart project, add it to your pubspec.yaml
file under dependencies:
dependencies:
dartive: ^version