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

outdatedDart 1 only

A serverside mvc framework

Dart Force MVC #

LOGO!

Part of the Dart Force Framework.

Serverside MVC based implementation for Dart. Easy to setup and part of the dart force framework!

Walkthrough

Use a server with dart very easily, create controllers with annotations ...

First you will setup a new server.

WebServer server = new WebServer(wsPath: wsPath, port: port, host: host, buildPath: buildPath);

Then you use the on method to handle http requests.

server.on(url, (req) { /* logic */ }, method: "GET");

You can also use the annotation RequestMapping in a dart object

@RequestMapping(value: "/someurl", method: "GET")

Then you register that object on the WebServer object.

server.register(someObjectWithRequestMappingAnnotations)

More info will follow in the coming days!

TODO

  • get more annotations and options for sending the response back
  • adding support for templates
  • adding support for a model
  • writing tests

Notes to Contributors #

Fork Dart Force MVC

If you'd like to contribute back to the core, you can fork this repository and send us a pull request, when it is ready.

If you are new to Git or GitHub, please read this guide first.

Twitter

Follow us on twitter https://twitter.com/usethedartforce

Dart Force

Realtime web framework for dart that uses force MVC

source code

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A serverside mvc framework

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http, http_server, logging, route, unittest, uuid

More

Packages that depend on forcemvc