yao_core

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

yao core

Yao Core #
MVCS (Model-View-Controller-Service) core package used by yao framework yao.
this package using:

Get as an dependency injection
Express syntax

Note #
Still in development. Not stable yet.
Usage #
Initialize #
import 'package:yao_core/yao_core.dart';

final app = Yao();

copied to clipboard
Route - View - Controller #
app.get("/", (req, res) {
res.render(HomepageView(), c: HomeController());
});
copied to clipboard
Service #
//inject
app.inject(MyService());

//get back
final service = app.find<MyService>();

copied to clipboard
Event #
app.on(EitherType(YaoEvent.ready),()async{
app.log('ready');
});
copied to clipboard
Run #
app.run()
copied to clipboard
Automated Test #
final app = Yao();
await app.runWithTester();
copied to clipboard
More details, checkout test\src

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.