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.
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.tsfile 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.tshas 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.tsfile.Constraints
The
seed.tsfile must be properly documented so that a new contributor can easily understand the data model and know which files to modify when extending it.