swarooppatilx / scruter

Scruter is a local classifieds and community site designed to bring people together for buying, selling, and exchanging goods and services.
https://scruter.vercel.app
GNU General Public License v3.0
28 stars 135 forks source link

[Feat] Seeding Database with Initial Listings #471

Closed ShivanshPlays closed 2 weeks ago

ShivanshPlays commented 2 weeks ago

Description

Seeding Database with Initial Listings

Overview

This seeding file, seeding.ts, is designed to populate the database with initial data. The file will create a dummy seller and six listings, with two listings for each category (Housing, For Sale, and Fooding). Images for each listing will be sourced from the public folder, and linked to the created listings in the database.

This seed data provides users with a quick way to see the platform in action, even if the database is initially empty.

Purpose of the Seeding File

When a user sets up the project for the first time, the database is usually empty, which makes it challenging to explore or test the application's features. Seeding the database with sample listings allows users to:

Screenshots

No response

Checklist