fallstrick_mvc 0.0.2

Dart native

A starting point for Dart libraries or applications.

fallstrick_mvc #

language license

Usage #

A simple usage example:

import 'package:fallstrick_mvc/fallstrick_mvc.dart';
import 'package:fallstrick_hosting/fallstrick_hosting.dart';


void main() {
  createWebHostBuilder('localhost', 8080).build().run();
  MVCReflection.doScan();
}

WebHostBuilder createWebHostBuilder(String address, int port) {
  return WebHostBuilder().useHttpListener(address, port).configure((app) {
    app.use(fallStrickMVC);
  });
}

@controller
class HelloController {
  void helloWorld() {
     print('helloworld')
  }
}

We should use this package with fallstrick_routing and fallstrick_hosting

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
80
pub points
0%
popularity

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

kayshen.xu@gmail.com

License

MIT (LICENSE)

Dependencies

fallstrick_hosting

More

Packages that depend on fallstrick_mvc