ShauryaSood2003 / CodeCrack

A leetCode like application where you can solve some questions
2 stars 1 forks source link

Update prisma schema with Test Cases and Update UI & Worker Code #3

Open ShauryaSood2003 opened 4 months ago

ShauryaSood2003 commented 4 months ago

This is a more advanced issue that involves updating the Prisma schema, modifying the UI, and updating the worker code. Here are the detailed steps:

  1. Update Prisma Schema: Add a testcaseList field to the ProblemList model in the Prisma schema. This will store the default test cases for each problem.
  2. Update the UI: Include input fields for the test cases in the problem creation and editing pages. Ensure that these fields are user-friendly and allow for easy input of multiple test cases and send the testcase with the code.
  3. Update Worker Code: Modify the worker code to run the default test cases provided in the testcaseList field of the ProblemList model. Display the response of these test cases in a clear and concise manner on the frontend.

This task requires a good understanding of both the backend and frontend parts of the application, as well as familiarity with Prisma and the existing codebase.

tushar-2811 commented 4 months ago

On it.