parrot 0.0.1 parrot: ^0.0.1 copied to clipboard
Parrot is a progressive Dart framework for building efficient, reliable and scalable server-side applications.
🦜 Parrot
A progressive Dart framework for building efficient, reliable and scalable server-side applications.
What is Parrot? #
Parrot is a Dart framework for building server-side applications. It is designed to be modular and maintainable.
In the Parrot core container, we use the DIP (Dependency Inversion Principle) design and agree on the way modules are composed.
NOTE: Parrot uses
dart:mirrors
to parse annotations and put the processed results into a container.
Getting Started #
Create a simple module:
import 'package:parrot/parrot.dart';
@Injectable()
class SimpleService {
void say() {
print('Hello, 🦜 Parrot!');
}
}
@Module(
providers: [SimpleService],
)
class SimpleModule {}
Next, create an application module:
import 'package:parrot/parrot.dart';
@Module(
dependencies: [SimpleModule],
)
class AppModule {}
Finally, create an application:
import 'package:parrot/parrot.dart';
void main() async {
final app = await ParrotApplication.create(AppModule);
final SimpleService simple = app.resolve(SimpleService);
simple.say(); // Hello, 🦜 Parrot!
}
Documentation #
Read the documentation for more information.
Examples #
For more examples please visit 👉 examples