[PR #4045] [CLOSED] build: database seed for hoppscotch backend #4643

Closed
opened 2026-03-17 02:09:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4045
Author: @mirarifhasan
Created: 5/7/2024
Status: Closed

Base: release/2024.3.3Head: feat/seed


📝 Commits (4)

  • 20b9b94 build: seed file added
  • 260f526 fix: dist folder being unsupported
  • 2a3dce6 fix: generate fake email in lower case
  • 54a7e73 chore: shortcode seed added and revamp the script

📊 Changes

4 files changed (+14738 additions, -16574 deletions)

View changed files

📝 packages/hoppscotch-backend/package.json (+4 -0)
packages/hoppscotch-backend/prisma/seed.ts (+444 -0)
📝 packages/hoppscotch-backend/tsconfig.build.json (+1 -1)
📝 pnpm-lock.yaml (+14289 -16573)

📄 Description

Closes HSB-393

Description

This PR added a seed script for hoppscotch-backend database.

How to Seed

pnpm i
cd packages/hoppscotch-backend
pnpx prisma db seed

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information

Nil


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/4045 **Author:** [@mirarifhasan](https://github.com/mirarifhasan) **Created:** 5/7/2024 **Status:** ❌ Closed **Base:** `release/2024.3.3` ← **Head:** `feat/seed` --- ### 📝 Commits (4) - [`20b9b94`](https://github.com/hoppscotch/hoppscotch/commit/20b9b94b53d05bf5be64e576fa73d3cfaf3c99ef) build: seed file added - [`260f526`](https://github.com/hoppscotch/hoppscotch/commit/260f526edc03d2895ae365684d8fb9147c4a3795) fix: dist folder being unsupported - [`2a3dce6`](https://github.com/hoppscotch/hoppscotch/commit/2a3dce662199ce5fbaaa390824d97bad6501255d) fix: generate fake email in lower case - [`54a7e73`](https://github.com/hoppscotch/hoppscotch/commit/54a7e7398127151428c0f293dcfc922a45839991) chore: shortcode seed added and revamp the script ### 📊 Changes **4 files changed** (+14738 additions, -16574 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-backend/package.json` (+4 -0) ➕ `packages/hoppscotch-backend/prisma/seed.ts` (+444 -0) 📝 `packages/hoppscotch-backend/tsconfig.build.json` (+1 -1) 📝 `pnpm-lock.yaml` (+14289 -16573) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> <!-- Issue # here --> Closes HSB-393 ### Description <!-- Add a brief description of the pull request --> This PR added a seed script for hoppscotch-backend database. ### How to Seed ``` pnpm i cd packages/hoppscotch-backend pnpx prisma db seed ``` <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed ### Additional Information <!-- Any additional information like breaking changes, dependencies added, screenshots, comparisons between new and old behaviour, etc. --> Nil --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:09:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4643
No description provided.