pocketbase_plus 0.0.4 copy "pocketbase_plus: ^0.0.4" to clipboard
pocketbase_plus: ^0.0.4 copied to clipboard

Pocketbase Plus is a Dart package that automates model generation for your PocketBase projects. Quick setup, less boilerplate, more time to build awesome apps!

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:

dart pub add 'dev:pocketbase_plus:{"git":"https://github.com/seifalmotaz/pocketbase_plus"}'   

or

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:
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'
  1. Run the magic:
dart run pocketbase_plus:main

You can specify the configuration file path (e.g.: your pubspec.yaml) using the --config or -c option:

dart run pocketbase_plus:main --config pubspec.yaml

Quick help: (-h or --help)

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!

1
likes
140
points
36
downloads

Publisher

unverified uploader

Weekly Downloads

Pocketbase Plus is a Dart package that automates model generation for your PocketBase projects. Quick setup, less boilerplate, more time to build awesome apps!

Repository (GitHub)

Topics

#pocketbase #json #models

Documentation

API reference

License

MIT (license)

Dependencies

args, path, pocketbase, yaml

More

Packages that depend on pocketbase_plus