Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mrgnhnt96/revali
- Owner: mrgnhnt96
- Created: 2024-07-11T01:16:01.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-11T20:15:16.000Z (about 1 month ago)
- Last Synced: 2024-12-22T18:13:00.096Z (23 days ago)
- Topics: api, backend, dart, nestjs
- Language: Dart
- Homepage: https://revali.dev
- Size: 7.85 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.