iguverse / tasks-candidates

1 stars 0 forks source link

Test Assignment: Creating a React Application Using Apollo Client #10

Closed Spikus closed 2 months ago

Spikus commented 2 months ago

Task Description

Create a small React application that interacts with a GraphQL API using Apollo Client. The application should perform the following tasks:

  1. Data Fetching: Retrieve a list of posts from the server and display them on the page. https://graphqlzero.almansi.me/
  2. Editing Posts: Implement the ability to edit a post by clicking on it. Upon clicking, an input field with the post's text should open, and changes should be automatically saved through a mutation.
  3. Handling Page Closure: Ensure changes are saved if the page is closed before the data is sent.

Requirements

  1. Use of React: The application should be written in React using functional components and hooks.
  2. TypeScript: All code should be written in TypeScript.
  3. Apollo Client: Apollo Client should be used for interacting with the GraphQL API.
  4. UI/UX: The UI should be simple and clean, with minimal styling.
  5. Validation: Add validation for the fields used in post editing.
  6. Documentation: Write brief documentation on how to run the application and describe its main components.

Expected Result

How to Submit the Assignment

  1. Upload the project to GitHub and provide a link to the repository.
  2. Include instructions for running the application in the repository's README file.

Additional Notes

This assignment will help evaluate your ability to work with modern frontend technologies such as React, TypeScript, and Apollo Client, as well as your attention to detail and ability to write clean and maintainable code.