Skip to content

Refactor seed.ts by extracting mocked data into dedicated files #54

@kOaDT

Description

@kOaDT

This is an excellent issue to get started smoothly on the project and become familiar with it. The changes are simple while still touching the entire data model of the project, which helps provide a clear overall understanding.

Objectives

The seed.ts file is responsible for populating the SQLite database with the hard-coded e-commerce data.
As the data model has evolved and become more complex, seed.ts has grown to nearly 1000 lines, which makes it difficult to maintain.
The idea is to perform a refactor to split it into multiple mocked data files (flags, hints, products, reviews, users, wishlists, logs, etc.), keeping only the import logic inside the seed.ts file.

Constraints

The seed.ts file must be properly documented so that a new contributor can easily understand the data model and know which files to modify when extending it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersimprovementFeature evolution, refactor, UI, UX, ...

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions