In the FAQ forum, questions about the website can be raised by the users who are authenticated and other users can answer that particular question and the question and answer will be reflected in a new forum page. I will implement this functionality end to end with the frontend and backend logic with Q&A schema of DB, email functionality, etc
PR1:
Schema Definition: The schema for Question and Answer has been added to the database.
Backend Actions:
createQuestion: A backend action that allows authenticated users to create questions.
createAnswer: A backend action that allows authenticated users to answer questions.
getAnsweredQuestions: A backend action to fetch all answered questions, available to all users.
getUnansweredQuestions: A backend action to fetch all unanswered questions, available to all users.
deleteQuestion: A backend action to delete a specific question along with its related answers. This is an admin-only action.
API Endpoints:
The endpoints for testing all routes (except the admin-protected delete route) have been created. Since the admin feature is not yet implemented, the delete question action is not available in the current API testing but has been set up for future use.
PR2:
add link in footer
make forum page in 3 parts :
Answered Questions: Displays questions that have already been answered.
Unanswered Questions: Lists questions that have not yet received an answer, allowing authenticated users to submit answers directly.
Ask a Question: Provides a form for authenticated users to post new questions to the forum.
Additionally, appropriate messages are shown to unauthenticated users in sections where authentication is required.
Description
In the FAQ forum, questions about the website can be raised by the users who are authenticated and other users can answer that particular question and the question and answer will be reflected in a new forum page. I will implement this functionality end to end with the frontend and backend logic with Q&A schema of DB, email functionality, etc
PR1:
Schema Definition: The schema for
Question
andAnswer
has been added to the database.Backend Actions:
createQuestion
: A backend action that allows authenticated users to create questions.createAnswer
: A backend action that allows authenticated users to answer questions.getAnsweredQuestions
: A backend action to fetch all answered questions, available to all users.getUnansweredQuestions
: A backend action to fetch all unanswered questions, available to all users.deleteQuestion
: A backend action to delete a specific question along with its related answers. This is an admin-only action.API Endpoints:
PR2:
Additionally, appropriate messages are shown to unauthenticated users in sections where authentication is required.
Screenshots
No response
Checklist