fallstrick_mvc 0.0.2 copy "fallstrick_mvc: ^0.0.2" to clipboard
fallstrick_mvc: ^0.0.2 copied to clipboard

A starting point for Dart libraries or applications.

example/fallstrick_mvc_example.dart

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');
  }
}
0
likes
40
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

A starting point for Dart libraries or applications.

Homepage

License

MIT (license)

Dependencies

fallstrick_hosting

More

Packages that depend on fallstrick_mvc