Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mrgnhnt96/revali

Dart backend framework inspired by NestJS
https://github.com/mrgnhnt96/revali

api backend dart nestjs

Last synced: 18 days ago
JSON representation

Dart backend framework inspired by NestJS

Awesome Lists containing this project

README

        

# Revali

Revali is a powerful code generator specifically designed for APIs. By leveraging annotations within your classes, methods, and method parameters, Revali manages the boilerplate code for you, allowing you to focus on writing clean and maintainable code.

## Creating a Controller

Here's a quick example of how to create a controller using Revali:

```dart
import 'package:revali_router/revali_router.dart';

@Controller("example")
class ExampleController {
@Get('items')
Future> getItems() async {
return ['item1', 'item2', 'item3'];
}

@Post('items')
Future createItem(@Body() Map item) async {
print('New item added: ${item['name']}');
}
}
```

To learn more about how Revali can help simplify your backend development workflow, including advanced topics like dependency injection, WebSocket management, and custom middleware, please visit [revali.dev](https://revali.dev) for the full documentation.

## Contributing

We welcome contributions!

## Developer Information

To assist with development tasks, you can use the `sip_cli` pub package to run various scripts defined in the `scripts.yaml` file. This is similar to using the `scripts` section in a `package.json` file for Node.js projects. These scripts simplify common development tasks, such as code generation and building packages.

### Available Scripts

Please refer to the [scripts.yaml](./scripts.yaml) file directly for an up to date listing of all commands.

## License

Revali is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.