https://github.com/seifalmotaz/pocketbase_plus
Pocketbase Plus is a Dart package that automates model generation for your PocketBase projects. Quick setup, less boilerplate, more time to build awesome apps!
https://github.com/seifalmotaz/pocketbase_plus
pocketbase pocketbase-plugins
Last synced: about 1 year ago
JSON representation
Pocketbase Plus is a Dart package that automates model generation for your PocketBase projects. Quick setup, less boilerplate, more time to build awesome apps!
- Host: GitHub
- URL: https://github.com/seifalmotaz/pocketbase_plus
- Owner: seifalmotaz
- License: mit
- Created: 2024-09-05T01:17:30.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-23T13:35:36.000Z (over 1 year ago)
- Last Synced: 2025-04-05T19:22:17.606Z (about 1 year ago)
- Topics: pocketbase, pocketbase-plugins
- Language: Dart
- Homepage: https://pub.dev/packages/pocketbase
- Size: 48.8 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Pocketbase Plus 🚀
Say goodbye to manual PocketBase model generation and let **Pocketbase Plus** do the heavy lifting! 😎
## Installation inside your project
install as dev dependency with:
```bash
dart pub add 'dev:pocketbase_plus:{"git":"https://github.com/seifalmotaz/pocketbase_plus"}'
```
or
```bash
dart pub add dev:pocketbase_plus
```
## How It Works
1. **Create a `pocketbase.yaml`** in your project or directly inside your `pubspec.yaml`.
2. Fill it with your secret sauce like this:
```yaml
pocketbase:
hosting:
domain: 'https://your-pocketbase-domain.com'
email: 'your-email@example.com'
password: 'your-password'
output_directory: './lib/models' # Optional, default is './lib/models'
```
4. **Run the magic**:
```bash
dart run pocketbase_plus:main
```
You can specify the configuration file path (e.g.: your pubspec.yaml) using the --config or -c option:
```bash
dart run pocketbase_plus:main --config pubspec.yaml
```
Quick help: (-h or --help)
```bash
dart run pocketbase_plus:main --help
```
And boom 💥! Your models are ready to roll!
Happy coding! ✨
## Next Steps
- Support for additional file types.
- Auto-generate CRUD functions directly within the models.
- Implement static `list` functions for fetching multiple records from the model.
More awesome features coming soon... Stay tuned!