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

[FEATURE]: Create DB Seed JSON file #84

Open
chris-nowicki opened this issue Mar 20, 2024 · 2 comments
Open

[FEATURE]: Create DB Seed JSON file #84

chris-nowicki opened this issue Mar 20, 2024 · 2 comments
Assignees
Labels
✨ Feature Requests for new features Medium Priority

Comments

@chris-nowicki
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

With multiple contributors and the ability to run Postgres locally it would be nice to have a seed file to seed the DB with dummy data to help with development of pages and components

Requirements:

  • 6 to 9 deals per category (some with pictures and some without pictures so we can make sure we cover that use case)
  • Need to look up requirements for seeding based on ORM we use (Prisma or Drizzle)
@chris-nowicki chris-nowicki added ✨ Feature Requests for new features Medium Priority labels Mar 20, 2024
@BryanF1nes
Copy link
Contributor

@chris-nowicki I would like to work on this if this has not already been assigned.

@mhuggins7278
Copy link
Contributor

Now that we are using prisma we can pair that with something like faker.js and programmatically generate the seed data.

For example:
https://lewistyler.xyz/2022/02/04/prisma-db-seed-faker-example/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature Requests for new features Medium Priority
Projects
None yet
Development

No branches or pull requests

3 participants