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

Example project / Demo implementation #1

Open
ludgerey opened this issue Aug 11, 2022 · 4 comments
Open

Example project / Demo implementation #1

ludgerey opened this issue Aug 11, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@ludgerey
Copy link

Could you provide an example project how to get this running and maybe provide some best practices that work in your eyes?

For me it's kind of an engineering task to fit all the peaces together. For example did you introduce the concept of a Seeding Source, which adds another level of configuration that one needs to understand.

I think having a demo code that definitely works could help a lot.

@MrMaz
Copy link

MrMaz commented Aug 11, 2022

@ludgerey absolutely! it might take a bit, so is there anything i can help with to unblock you in the short term?

@ludgerey
Copy link
Author

I'm moving from w3tecch/typeorm-seeding to this project. On top of that I'm updating to typeorm v0.3.0, which adds some complexity, too. However migrating the Seed and Factory classes was straightforward.

But Seeding Sources adds a new concept, which I need to understand. To be fair I have to read the documentation more carefully. I skimmed trough a bit. Shame on me.

Furthermore configuration ormconfig.ts and DataSource did change, which I probably have to migrate too.

All this combined makes it hard to understand what should be the final result of the migration. What will work.

@MrMaz
Copy link

MrMaz commented Aug 11, 2022

@ludgerey we have it implemented on this starter project for our Rockets library. The seeders and factories are imported from other modules, but at least you can see a working example of the orm and seeder configs with TypeORM 0.3

https://github.com/conceptadev/rockets-starter/tree/main/packages/rockets-api/src

@MrMaz MrMaz self-assigned this Aug 11, 2022
@MrMaz MrMaz added the enhancement New feature or request label Aug 11, 2022
@ludgerey
Copy link
Author

Thanks for providing the repository! This helped me a lot.

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

No branches or pull requests

2 participants