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

[Boot] Automatic configuration of repositories in Application #781

Closed
7 tasks done
kjdelisle opened this issue Dec 7, 2017 · 2 comments
Closed
7 tasks done

[Boot] Automatic configuration of repositories in Application #781

kjdelisle opened this issue Dec 7, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@kjdelisle
Copy link
Contributor

kjdelisle commented Dec 7, 2017

blocked by #780

Story

As a LoopBack 4 user, I would like all of the repository files I place (or generate!) in ./src/repositories to automatically be associated with my Application so that I don't have to type app.repository(...) over and over again.

Acceptance Criteria

  • If the Application is not using the RepositoryMixin, ignore the contents of /src/repositories.
  • Must read all files of the format *.repository.js from the repositories directory
  • Must associate all of the repository exported classes with the application using the .repository function.
  • Take each exported class from the *.repository.js file (subject to change based on user feedback)
  • [ ] There should be a blog post informing users that this is now live (once this change has been released!), and explain how it works.
  • Docs on loopback.io
  • Refactor/update example code (loopback4-example-getting-started)
  • Check that app template(s) in CLI already use @loopback/boot (and if not, fix this)
@shimks shimks added team-apex and removed epic labels Dec 7, 2017
@shimks shimks changed the title Automatic configuration of repositories in Application [Boot] Automatic configuration of repositories in Application Dec 8, 2017
@bajtos bajtos mentioned this issue Dec 12, 2017
10 tasks
@dhmlau
Copy link
Member

dhmlau commented Dec 21, 2017

FYI - please check with @raymondfeng when picking up this task. Some of the ideas in boot for LB3 can be reused.

@virkt25
Copy link
Contributor

virkt25 commented Feb 28, 2018

As per a discussion with @kjdelisle, the blog for @loopback/boot will cover the Repository Booter since this alone doesn't provide enough content for a blog post.

PRs landed. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants