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.
import 'package:parrot/parrot.dart';
@Injectable()
class SimpleService {
void say() {
print('Hello, 🦜 Parrot!');
}
}
@Module(
providers: [SimpleService],
)
class SimpleModule {}
@Module(
dependencies: [SimpleModule],
)
class AppModule {}
void main() async {
// Create a parrot application.
final ParrotApplication app = await ParrotApplication.create(AppModule);
// Resolve [SimpleService] from the application.
final SimpleService simple = await app.resolve(SimpleService);
// Call say method.
simple.say(); // Hello, 🦜 Parrot!
}