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

Create database seeding script #137

Merged
merged 14 commits into from
Jul 16, 2024

Conversation

dsmabulage
Copy link
Contributor

Purpose

The purpose of this PR is to fix #134

Goals

  1. Add db seeding for initial db with sample values

Approach

  1. Used fakers to generate random values.
  2. All the tables were populated with the relations.
  3. localhost:3000/api/seeds/seed will seed the db.

Screenshots

image

Checklist

  • This PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
  • I have read and understood the development best practices guidelines ( http://bit.ly/sef-best-practices )
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

Related PRs

Test environment

Learning

src/routes/seeds/seeds.route.ts Outdated Show resolved Hide resolved
Copy link
Member

@anjula-sack anjula-sack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check the lint issues? @dsmabulage

@dsmabulage
Copy link
Contributor Author

Can you check the lint issues? @dsmabulage

fixed that

Copy link
Member

@anjula-sack anjula-sack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! @dsmabulage

@anjula-sack anjula-sack changed the title Bugfix/issue 134 db seeding Create database seeding script Jul 16, 2024
@anjula-sack anjula-sack merged commit bac4dff into sef-global:main Jul 16, 2024
1 check passed
anjula-sack pushed a commit to anjula-sack/scholarx-backend that referenced this pull request Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add DB Seeding Functionality
3 participants