JiayangYing / CITS3403_PRO

MIT License
2 stars 0 forks source link

Backend Filtering for Product Listings #100

Closed lwb611266 closed 5 months ago

lwb611266 commented 6 months ago

Implement backend filtering functionality to allow users to filter product listings based on their input criteria. Apply appropriate filtering mechanisms to query the database and retrieve filtered product listings that match the user's criteria. Features: 1.Define Product Model: Start by defining a model for your products in your backend application. This model should reflect the structure of your product data, including attributes like name, category, price, etc.

2.Database Setup: Set up a database to store your product data. You can choose a database system that fits your requirements, such as SQLite, PostgreSQL, MySQL, etc.

3.Create Endpoints: Create endpoints in your backend application to handle product filtering requests. These endpoints will receive user input criteria and perform filtering operations on the database.

4.Filtering Mechanisms: Implement appropriate filtering mechanisms based on the user's input criteria. This may include filtering by category, price range, product attributes, etc. Use SQL queries or ORM methods (if you're using an ORM like SQLAlchemy) to filter the database records.

loklokyx commented 5 months ago

@lwb611266 done merge, please help review it. Thanks

lwb611266 commented 5 months ago

@lwb611266 done merge, please help review it. Thanks

looks good to me,thank you,I will merge it into main.