nero 1.0.0-dev+6 copy "nero: ^1.0.0-dev+6" to clipboard
nero: ^1.0.0-dev+6 copied to clipboard

Microframework based on Express and angel_route.

nero #

Microframework based on Express and angel_route. This framework is unrelated to Angel.

This is an experimental library, don't expect any future support.

main() {
  final app = new Nero();
  
  app.get('/', (req) => new Response.text('Hello, world!'));
  
  app.chain((req, next) async {
    req.properties['user'] = await someQuery(req.params.id);
  }).get('/user/:id', (req) {
    return new Response.json(req.user);
  });
}
0
likes
25
pub points
0%
popularity

Publisher

unverified uploader

Microframework based on Express and angel_route.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

angel_route, body_parser, heaven, json_god, mime, path

More

Packages that depend on nero