martin-markovic / learn-connect

Multi-feature platform designed to enhance the online learning experience.
MIT License
0 stars 0 forks source link

Implement Client-Side Quiz Service #23

Closed martin-markovic closed 1 month ago

martin-markovic commented 1 month ago

Summary

This pull request focuses on implementing the client-side quiz service. It includes updating the API URL, enhancing error handling, and integrating the necessary components and hooks to handle quiz creation and rendering.

Changes

  1. API Configuration

    • Changed API URL to include port number in quizService.js.
  2. Error Handling

    • Implemented robust error handling in quizService.js.
  3. Redux and State Management

    • Exported editQuiz function.
    • Fixed typos and renamed reset reducer to resetQuizzes to avoid naming conflicts in quizSlice.js.
  4. Component Integration

    • Integrated necessary hooks, redux slices, and HTML form to handle quiz creation and rendering in Quizzes.jsx.
    • Integrated Quizzes.jsx component to its matching route endpoint in App.js.
  5. Dependency Management

    • Added user to useEffect dependency list in App.js.

Testing

Additional Information