Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples and extensions for other DALs and ORMs #3

Open
2 tasks
mwpastore opened this issue Dec 2, 2016 · 0 comments
Open
2 tasks

Add examples and extensions for other DALs and ORMs #3

mwpastore opened this issue Dec 2, 2016 · 0 comments

Comments

@mwpastore
Copy link
Owner

mwpastore commented Dec 2, 2016

  • Relational Databases
    • ActiveRecord
  • Non-Relational Databases
    • Mongo

Guidelines:

  1. Hard-fork sinja-sequel.
  2. Rename the project and update the gemspec and file and directory names:
    • sinja-sequel.gemspec
    • lib/sinja-sequel.rb
    • lib/sinja/sequel.rb
    • lib/sinja/sequel/
    • lib/sinatra/jsonapi/sequel.rb
  3. Minimally, update core.rb to provide the basic configuration and helpers for the library in question:
    • Configuration
      • conflict_exceptions
      • not_found_exceptions
      • validation_exceptions
      • validation_formatter
    • Helpers
      • transaction
      • filter
      • sort
      • finalize
      • validate!
  4. If the library supports pagination, update pagination.rb (and its hook in core.rb):
    • Configuration
      • page_using
    • Helpers
      • page
  5. Add helpers to helpers.rb that will ease the pain of writing action helpers, if any.
  6. Rewrite the extension to generate basic action helpers for resource, has_many, and has_one, if possible.
  7. For bonus credit, import/fork the demo app and port it to your new extension.
  8. Update README.md to reflect your work and document best practices.
  9. Send me a PR to add your extension to the main Sinja README (pending a code review).
    • Alternatively, pending a code review, I would be willing to fork your repo and assume maintainership of the extension, adding you back as a contributor.
@mwpastore mwpastore changed the title Add examples and helpers for other DALs and ORMs Add examples and extensions for other DALs and ORMs Dec 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant